summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'stable' into rabbitmq-server-1223Michael Klishin2017-06-195-22/+89
|\
| * Using square brackets could cause an errorLuke Bakken2017-06-171-1/+26
| | | | | | | | | | Conflicts: scripts/rabbitmq-env.bat
| * Merge pull request #1260 from rabbitmq/improve-partitions_SUITED Corbacho2017-06-132-20/+58
| |\ | | | | | | Improve `partitions_SUITE`
| | * partitions_SUITE: Try to improve partial_pause_minorityJean-Sébastien Pédron2017-06-131-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The testcase simulates a partial partition which should be detected by the two nodes on each side of the partition. They should both decide there is a partial partition and stop. However, sometimes one of the node is faster than the other one: it sees the partial partition and stops before the second node even sees the partition. When this happens, the second node doesn't even bother to stop (because the partition is full now). Thus the testcase fails because it expects both nodes to stop. This patch tries to sync partial partition checks so both A and B decide there is a partial partition. [#146911969]
| | * partitions_SUITE: Try to improve partial_false_positiveJean-Sébastien Pédron2017-06-131-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The testcase simulates a small delay between the times B sees A down and C sees A down too. Because A is effectively down for both, B's rabbit_node_monitor shouldn't see a partial partition. When B sees A down first, it asks C about A. In the scenario the testcase simulates, C tries to contact A, fails and reports to B that A is down. However, because of the way we simulate that delay, sometimes, C still sees A when B asks about it, because the link between A and C isn't blocked yet. When this happens, B decides there is a partial partition. Therefore, the testcase fails because it tests that this shouldn't happen. To try to be closer to a real-world situation (where A would be really down for B and C), we suspend C's rabbit_node_monitor until we block the link between A and C. Thus B still asks C about A, but C only processes the request when the link is indeed down. [#146911969]
| | * rabbit_node_monitor: Normalize indent and remove trailing spacesJean-Sébastien Pédron2017-06-131-20/+20
| |/
| * rabbit: Remove trailing space in log messageJean-Sébastien Pédron2017-06-131-1/+1
| |
| * Update rabbitmq-components.mkMichael Klishin2017-06-121-0/+4
| |
* | Move function that reports total used memoryDaniil Fedotov2017-06-152-100/+97
| | | | | | | | | | | | | | | | | | | | Tests were failing because they required vm_memory_monitor process to be running re #1259 [#145451399] Signed-off-by: Gerhard Lazu <gerhard@rabbitmq.com>
* | Change vm_memory_use_process_rss config to vm_memory_calculation_strategyDaniil Fedotov2017-06-142-4/+21
| | | | | | | | | | | | [#145451399] Signed-off-by: Gerhard Lazu <gerhard@rabbitmq.com>
* | Use OS memory total when reporting memory usageDaniil Fedotov2017-06-141-8/+25
| | | | | | | | | | | | | | | | Account for extra memory that was reported in other_ets [#145451399] Signed-off-by: Gerhard Lazu <gerhard@rabbitmq.com>
* | Current process system memory functions for various OSes.Daniil Fedotov2017-06-131-5/+16
| | | | | | | | | | | | According to AIX, SunOS and BSD docs, ps command can have rss format, so get_ps_memory should work. We already requiring tasklist for wait command, so we can use it here.
* | Use system process rss memory when reporting vm memoryDaniil Fedotov2017-06-122-6/+74
|/ | | | | | | | | | Memory reported by erlang:memory(total) is not supposed to be equal to the total size of all pages mapped to the emulator, according to http://erlang.org/doc/man/erlang.html#memory-0 erlang:memory(total) under-reports memory usage by around 20% [#1223] [#145451399]
* Merge pull request #1246 from rabbitmq/rabbitmq-server-1243Michael Klishin2017-06-086-4/+98
|\ | | | | OTP-20 compatibility workaround for queue directory names. 3.6 only!
| * Use binaries as queue names in testsDaniil Fedotov2017-06-082-2/+2
| |
| * Merge branch 'stable' into rabbitmq-server-1243Michael Klishin2017-06-083-11/+14
| |\ | |/ |/|
* | Merge pull request #1253 from FabianPonce/fix-gc-docs-stableMichael Klishin2017-06-072-2/+2
|\ \ | | | | | | Improve documentation around new default for background garbage collection
| * | Modify the documentation and background_gc.erl default value for ↵Fabian Ponce2017-06-072-2/+2
|/ / | | | | | | background_gc_enabled to false to match the behavior of the Makefile.
* | Merge branch 'rabbitmq-server-1233-v2' into stableMichael Klishin2017-06-061-9/+12
|\ \
| * | Log MiB instead of MB and report total of bytesDiana Corbacho2017-06-061-9/+12
|/ / | | | | | | | | rabbitmq-server#1233 [#146160779]
| * Comment on binary format valuesDaniil Fedotov2017-06-061-6/+6
| |
| * OTP-20 compatibility workaround for queue directory names.Daniil Fedotov2017-06-064-2/+96
|/ | | | | | | OTP-20 has different binary format for atoms (since OTP-14337) So term_to_binary generates different value. testm_to_binary_compat now have a function to generate a binary identical to pre-20 versions.
* Update rabbitmq-components.mkrabbitmq_v3_6_11_milestone1Michael Klishin2017-06-021-0/+2
|
* Update rabbitmq-components.mkMichael Klishin2017-06-021-1/+8
|
* Merge pull request #1241 from rabbitmq/rabbitmq-server-1238-stableMichael Klishin2017-05-301-0/+1
|\ | | | | Update sup_delayed_restart_SUITE for rabbitmq-common#202
| * Fix sup_delayed_restart_SUITE.Aliaksey Artamonau2017-05-301-0/+1
|/ | | | To accommodate changes made in rabbitmq/rabbitmq-common#201.
* Merge pull request #1226 from binarin/dont-expand-dir-plugins-stableMichael Klishin2017-05-271-9/+32
|\ | | | | Don't expand plugins that are already unpacked
| * Naming, wordingMichael Klishin2017-05-231-5/+5
| |
| * Don't expand plugins that are already unpackedAlexey Lebedeff2017-05-221-9/+32
| | | | | | | | | | | | | | | | | | | | This prevents creating unnecessary files when running in embedded mode, and in development mode it keeps code path clean and compatible with different interactive tools. Also some new error conditions are properly handled and logged: - Failure to unpack an .ez-file - Missing .app file in plugin directory
* | Merge pull request #1234 from rabbitmq/rabbitmq-server-1224Michael Klishin2017-05-262-7/+27
|\ \ | | | | | | Introduce a new config parameter, total_memory_available_override_value, to override total amount of memory available to the node
| * | Missing comma in config exampleMichael Klishin2017-05-261-1/+1
| | |
| * | Use new config parameter total_memory_available_override_value to set total ↵Diana Corbacho2017-05-262-7/+27
| |/ | | | | | | | | | | | | memory rabbitmq-server#1224 [#145450413]
* | Fix runtime parameter formatting.rabbitmq_v3_6_10Daniil Fedotov2017-05-231-2/+2
| | | | | | | | rabbit_misc:json_encode can return a list or a binary.
* | file_handle_cache: Move it from rabbitmq-server to rabbitmq-commonJean-Sébastien Pédron2017-05-192-1566/+0
| | | | | | | | | | | | | | | | | | This module is generic enough and is used by the Erlang client. Moving it is the last step to resolve the interdependency between the Erlang client and the broker: with this change, the client only depends on rabbitmq-common! [#118490793]
* | rabbit_upgrade_functions: Turn off `export_all` warningJean-Sébastien Pédron2017-05-191-1/+1
| | | | | | | | | | Erlang 20.x warns if `export_all` is set in a module by default. We need to turn the warning off.
* | file_handle_cache: Move RabbitMQ-specific functions to rabbit_fhc_helpersJean-Sébastien Pédron2017-05-192-32/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | Those are the functions to clear the read buffer cache in various internal RabbitMQ processes. file_handle_cache still reads the `fhc_read_buffering` and `fhc_write_buffering` rabbit application variables, though. Thus, this change almost removes a dependency of file_handle_cache on the broker. Reading the configuration variable is acceptable for now so this will allow us to move file_handle_cache to rabbitmq-common. [#118490793]
* | Move rabbit_memory_monitor:memory_use/1 to vm_memory_monitorJean-Sébastien Pédron2017-05-193-14/+19
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The function is renamed to get_memory_use/1 in the process, to match other functions in the vm_memory_monitor module. The file_handle_cache uses that function. By moving it to vm_memory_monitor, we remove a dependency of file_handle_cache on a rabbit_* module. This will allow us to move both file_handle_cache and vm_memory_monitor to rabbitmq-common and help remove a dependency in the Erlang client on the broker because the former calls file_handle_cache:obtain/0. To sum up the situation before this commit with a graph: amqp_network_connection --[depends on]--> file_handle_cache (amqp_client) (rabbit) file_handle_cache --[depends on]--> rabbit_memory_monitor (rabbit) (rabbit) And the situation we want to reach after the move: amqp_network_connection --[depends on]--> file_handle_cache (amqp_client) (rabbit_common) file_handle_cache --[depends on]--> vm_memory_monitor (rabbit_common) (rabbit_common) rabbit_memory_monitor --[depends on]--> vm_memory_monitor (rabbit) (rabbit_common) [#118490793]
* Makefile: Load the new `rabbitmq-early-test.mk` early-stage pluginrabbitmq_v3_6_10_rc2Jean-Sébastien Pédron2017-05-161-0/+1
| | | | | | See the corresponding commit in rabbitmq-common for an explanation. [#144697185]
* Update erlang.mkJean-Sébastien Pédron2017-05-161-149/+231
|
* Namingrabbitmq_v3_6_10_rc1rabbitmq_v3_6_10_milestone4Michael Klishin2017-05-101-8/+8
| | | | per discussion with @gerhard.
* Merge pull request #1217 from rabbitmq/improve-wait-when-clustering-1214Daniil Fedotov2017-05-102-14/+71
|\ | | | | Check rabbit is running after the boot process finishes
| * Replace await_startup with new implementationDaniil Fedotov2017-05-102-18/+2
| | | | | | | | | | | | Signed-off-by: Gerhard Lazu <gerhard@rabbitmq.com> [#145043957]
| * Add test for rabbitmqctl wait when node fails to clusterDaniil Fedotov2017-05-101-3/+47
| | | | | | | | | | | | | | | | | | | | | | | | Lower mnesia_table_loading_retry_timeout so test suite will be faster. Add mnesia_table_loading_retry_limit so that we test retries. Signed-off-by: Gerhard Lazu <gerhard@rabbitmq.com> re #1214 [Finishes #145043957]
| * Ensure rabbit is running after the boot process finishesDaniil Fedotov2017-05-092-3/+32
|/ | | | | | | | | | | | | | Boot process can exit if boot fails. It can result in rabbit:await_startup/0 returning ok & rabbitmqctl wait exiting with exit status 0. WIP, still need to add some tests. Signed-off-by: Gerhard Lazu <gerhard@rabbitmq.com> re #1214 [#145043957]
* Fix mnesia_table_loading_retry_timeout example config & add retry limitDaniil Fedotov2017-05-091-2/+7
| | | | Signed-off-by: Gerhard Lazu <gerhard@rabbitmq.com>
* Merge pull request #1215 from rabbitmq/rabbitmq-server-1213Michael Klishin2017-05-091-1/+45
|\ | | | | Test single slave restart after forget_cluster_nodes in offline mode
| * Minor naming improvementMichael Klishin2017-05-091-2/+2
| | | | | | | | | | While "Removee" is clear and to the point, some may conclude that it is a typo (supposed to be "Remove").
| * Test single slave restart after forget_cluster_nodes in offline modeDiana Corbacho2017-05-081-1/+45
| | | | | | | | | | rabbitmq-server#1213 [#145084865]
* | Merge pull request #1209 from ↵rabbitmq_v3_6_10_milestone3Michael Klishin2017-05-081-1/+1
|\ \ | |/ |/| | | | | binarin/more-defaulting-for-plugins-expand-dir-stable Use plugins expand dir with default fallback value
| * Use plugins expand dir with default fallback valueAlexey Lebedeff2017-05-051-1/+1
|/ | | | In addition to #1134