summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Move rabbit_net:accept_ack() to rabbit_networkingJean-Sébastien Pédron2017-06-262-2/+20
| | | | | | | | | | ... in rabbitmq-server. This resolves a reverse dependency of rabbitmq-common on rabbitmq-server. However, this breaks the API because we can't keep a compatibility function. [#118490793]
* rabbit_auth_backend_internal: with_user_and_vhost() was movedJean-Sébastien Pédron2017-06-261-3/+3
| | | | | | ... to rabbit_vhost. [#118490793]
* Move modules which don't belong to rabbitmq-common hereJean-Sébastien Pédron2017-06-2610-0/+4464
| | | | | | | | | | | Those modules depend on rabbitmq-server but they are used neither by the Erlang client nor by rabbitmq-common itself. They are imported as-is. Some may need further changes after the import. This resolves the dependency of rabbitmq-common on rabbitmq-server. [#118490793]
* rabbit_vhost: Move with_user_and_vhost/3 from rabbit_misc in rabbitmq-commonJean-Sébastien Pédron2017-06-261-1/+6
| | | | | | | | This is a breaking change and we'll need to update users of this API. This resolves a dependency of rabbitmq-common on rabbitmq-server. [#118490793]
* mnesia_sync: Move to rabbitmq-commonJean-Sébastien Pédron2017-06-261-73/+0
| | | | | | Thi resolves a dependency of rabbitmq-common on rabbitmq-server. [#118490793]
* worker_pool: Move to rabbitmq-commonJean-Sébastien Pédron2017-06-263-421/+0
| | | | | | Thi resolves a dependency of rabbitmq-common on rabbitmq-server. [#118490793]
* Move rabbit_networking and rabbit_reader from rabbitmq-commonJean-Sébastien Pédron2017-06-262-0/+2014
| | | | | | | They are not used by rabbitmq-common or rabbitmq-erlang-client anymore. This solves a dependency of rabbitmq-common on rabbitmq-server. [#118490793]
* rabbit_log: Move it from rabbitmq-server to rabbitmq-commonJean-Sébastien Pédron2017-06-261-108/+0
| | | | | | | | It obviously depends on a running broker, but some modules in rabbitmq-common call it. This resolves a dependency of rabbitmq-common on rabbitmq-server. [#118490793]
* vm_memory_monitor, rabbit_resource_monitor_misc: Move to rabbitmq-commonJean-Sébastien Pédron2017-06-262-587/+0
| | | | | | | | | | | | vm_memory_monitor is used by file_handle_cache which was previously moved here (see commit c36be242a58863be872b08b9bc0ec79c6d23b1db). rabbit_resource_monitor_misc is used by vm_memory_monitor. They are generic enough to be moved to rabbitmq-common. This resolves a dependency of rabbitmq-common on rabbitmq-server. [#118490793]
* Fix log_management test in OTP 20Gerhard Lazu2017-06-221-1/+1
| | | | | | The Format structure for error_logger:error_report(Type, Report) is different in OTP 20, otherwise nothing will get logged in the SASL log file.
* Remove duplicate READMEGerhard Lazu2017-06-211-1/+0
| | | | | | | | README.md is the one that we want to keep & distribute, surely To be honest, I was looking for a tiny change that would trigger the entire pipeline. This felt minor and helpful, but feel free to revert if it's not.
* Merge pull request #1270 from rabbitmq/rabbitmq-server-1223-fixMichael Klishin2017-06-211-6/+4
|\ | | | | Use wmic instead of tasklist to get Windows process memory
| * Use wmic instead of tasklist to get Windows process memoryLuke Bakken2017-06-211-6/+4
|/
* Fix term_to_binary_compat tests in R16B03Jean-Sébastien Pedron2017-06-212-11/+23
| | | | | | | | For realz this time R16B03 defaults term_to_binary version to 0, this test would always fail Signed-off-by: Gerhard Lazu <gerhard@rabbitmq.com>
* rabbit_vm, vm_memory_monitor: Use spaces to indentJean-Sébastien Pédron2017-06-212-8/+7
|
* Move total_memory() from rabbit_vm to vm_memory_monitorJean-Sébastien Pédron2017-06-212-101/+102
| | | | | | | | This resolves a reverse dependency of a generic module on a RabbitMQ-specific module. This is required because the vm_memory_monitor module is about to be moved to rabbitmq-common. [#118490793, #145451399]
* Improve naming for test iterations & properties which are testedrabbitmq_v3_6_11_milestone2Gerhard Lazu2017-06-201-7/+13
| | | | [#146794925]
* Fix binary comparison in OTP R16B03Gerhard Lazu2017-06-201-1/+1
| | | | | | | | | Binaries are not equal in OTP R16B03 & 20-rc.1, converting binary back to term passes in R16B03. Would have tested OTP 20-rc.1 as well, but it's not available via kerl [#146794925]
* Merge pull request #1259 from rabbitmq/rabbitmq-server-1223Michael Klishin2017-06-193-15/+125
|\ | | | | Use system process rss memory when reporting vm memory
| * Merge branch 'stable' into rabbitmq-server-1223Michael Klishin2017-06-195-22/+89
| |\
| * | 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 #1268 from rabbitmq/rabbitmq-server-1243Michael Klishin2017-06-183-24/+50
|\ \ \ | | | | | | | | Make term_to_binary_compat generate binaries using minor_version 1.
| * \ \ Merge branch 'stable' into rabbitmq-server-1243Michael Klishin2017-06-171-1/+1
| |\ \ \ | |/ / / |/| | |
* | | | Manually re-apply #1269Michael Klishin2017-06-171-1/+1
| | | |
* | | | Revert "Using square brackets could cause an error"Michael Klishin2017-06-171-26/+1
| |_|/ |/| | | | | | | | | | | | | | This reverts commit ce85ac7bb66203b19630317cc52fec81f3299cda. This includes some master-specific bits.
* | | Using square brackets could cause an errorLuke Bakken2017-06-171-1/+26
| | | | | | | | | | | | | | | Conflicts: scripts/rabbitmq-env.bat
| * | Make term_to_binary_compat generate binaries using minor_version 1.Daniil Fedotov2017-06-163-24/+50
|/ / | | | | | | | | | | term_to_binary now has `minor_version:2` to always generate utf-8 atoms, while default is `1`, so binaries generated in OTP-20 should be the same as in OTP-19 for non-unicode atoms.
* | 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
|/
* 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.