summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Ensure ERL_LIBS starts with a valid pathEris Belew2017-05-021-1/+6
|
* scripts/rabbitmq-server: Work around signal handling issue with DashPatrick Sodré2017-04-281-11/+30
| | | | | | | | | | | | | | | | | | | | | | | On Debian-like distributions, `/bin/sh` defaults to `/bin/dash` which has a bug with signal handlers. In the case of Dash, it looks like `set -e` (set at the beginning of this script) gets precedence over signal handling. Therefore, when `wait` is interrupted, its exit code is non-zero and because of `set -e`, the script terminates immediately without running the signal handler. To work around this issue, we use `|| true` to force that statement to succeed and the signal handler to properly execute. Replace the use of `-e` on the shebang line by a standalone `set -e`, like other scripts. This way, the script behavior remains the same if the script is started as an argument to a shell. For instance: bash ./rabbitmq-server Bump the copyright year to 2017. Signed-off-by: Patrick Sodré <sodre@sodre.co> Fixes #1192.
* Merge pull request #1196 from rabbitmq/rabbitmq-server-1194Michael Klishin2017-04-252-7/+18
|\ | | | | Support integers in memory relative free disk space limits
| * Update type specMichael Klishin2017-04-251-1/+1
| |
| * Revert "Minor doc improvement"Michael Klishin2017-04-251-1/+0
| | | | | | | | | | | | | | This reverts commit d58b61335591d1dafc7e2adabf85f09fbce9168e. Actually, 1.0+ values should be fine since the value is relative to the total amount of available RAM.
| * Minor doc improvementMichael Klishin2017-04-251-0/+1
| |
| * Support integers in memory relative free disk space limitsDiana Corbacho2017-04-252-6/+17
| | | | | | | | | | rabbitmq-server#1194 [#144271963]
* | Merge pull request #1195 from rabbitmq/rabbitmq-server-1180Gerhard Lazu2017-04-251-0/+2
|\ \ | |/ |/| Makefile: Fix malformed manpages with GNU sed
| * Makefile: Fix malformed manpagesJean-Sébastien Pédron2017-04-251-0/+2
|/ | | | | | | | | | | | | | | | | The generated manpage contains malformed .HP directives: .HP \w'\fBstop\fR\ 'u \fBstop\fR [\fIpid_file\fR] The .HP directive takes one argument, the indentation. Thus, the first line (which is not indented) should be on the next line: .HP \w'\fBstop\fR\ 'u \fBstop\fR [\fIpid_file\fR] Manpages will be converted to mdoc(7) in master so we are sure of the formatting. The DocBook versions will be dropped. This will also simplify the build process. References #1180. [#143563295]
* Update erlang.mkrabbitmq_v3_6_10_milestone2Jean-Sébastien Pédron2017-04-191-33/+39
|
* Merge pull request #1179 from rabbitmq/rabbitmq-server-1178Michael Klishin2017-04-123-13/+68
|\ | | | | Re-enable disk_monitor in case of parser failures
| * NamingMichael Klishin2017-04-123-8/+8
| |
| * WordingMichael Klishin2017-04-121-1/+1
| |
| * Log message wordingMichael Klishin2017-04-121-4/+4
| |
| * Re-enable disk_monitor in case of parser failuresDiana Corbacho2017-04-123-12/+67
| | | | | | | | | | | | | | | | Parser failures could be transient on start-up, so retry a few times before giving up. rabbitmq-server#1178 [#143558437]
* | Call init:stop() during rabbitmqctl stop even if logging fails.rabbitmq_v3_6_10_milestone1Daniil Fedotov2017-04-101-10/+15
| | | | | | | | | | | | | | This makes sure that we try to stop an erlang app even if an exception is thrown during logging in the "after" block. Otherwise there is an inconsistency between "failed and the erlang node will stop" and "failed, but the erlang node will not stop"
* | Merge pull request #1176 from rabbitmq/rabbitmq-server-1172Michael Klishin2017-04-062-6/+7
|\ \ | |/ |/| Make queue master locator treat queue args as AMQP table.
| * Make queue master locator treat queue args as AMQP table.Daniil Fedotov2017-04-052-6/+7
|/ | | | | Fixes #1172 Tests were using incorrect format for queue args as well as the code.
* (c) yearMichael Klishin2017-04-052-2/+2
|
* rabbit_control_main: Indicate node name in the "successfully shut down" lineJean-Sébastien Pédron2017-04-031-1/+3
| | | | | | Signed-off-by: Gerhard Lazu <gerhard@rabbitmq.com> [#142699191]
* Merge pull request #1169 from rabbitmq/more-info-during-shutdownMichael Klishin2017-04-031-3/+6
|\ | | | | Add more info during rabbitmqctl shutdown
| * Merge branch 'stable' into more-info-during-shutdownMichael Klishin2017-04-03113-114/+114
| |\ | |/ |/|
* | (c) yearMichael Klishin2017-04-02112-112/+112
| |
* | (c) yearMichael Klishin2017-04-021-1/+1
| |
* | rabbit_epmd_monitor: call register_node on Mod, not its defaultStephan Renatus2017-03-311-1/+1
| | | | | | | | trivial change