summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@novemberain.com>2018-02-27 07:05:12 +0300
committerGitHub <noreply@github.com>2018-02-27 07:05:12 +0300
commit884003da8d6fd4406b65114512aee94d3d5defe5 (patch)
tree97544bc2681cac03f68d4a903704667a2cb5b50c
parent631f822f7dd7688d437fa7324827c5ff795756d6 (diff)
parent668425ee1796db2310e0761ee09d85923606905c (diff)
downloadrabbitmq-server-git-884003da8d6fd4406b65114512aee94d3d5defe5.tar.gz
Merge pull request #1533 from rabbitmq/rabbitmq-server-1531v3.7.4-rc.4
Correct generated randomized startup delay range key
-rw-r--r--priv/schema/rabbit.schema6
-rw-r--r--src/rabbit_mnesia.erl1
-rw-r--r--test/config_schema_SUITE_data/rabbit.snippets6
3 files changed, 7 insertions, 6 deletions
diff --git a/priv/schema/rabbit.schema b/priv/schema/rabbit.schema
index a8a36ad87d..359abeb117 100644
--- a/priv/schema/rabbit.schema
+++ b/priv/schema/rabbit.schema
@@ -869,12 +869,12 @@ end}.
%% Cluster formation: Randomized startup delay
-{mapping, "cluster_formation.randomized_startup_delay_range.min", "rabbit.cluster_formation.randomized_delay_range",
+{mapping, "cluster_formation.randomized_startup_delay_range.min", "rabbit.cluster_formation.randomized_startup_delay_range",
[{datatype, integer}]}.
-{mapping, "cluster_formation.randomized_startup_delay_range.max", "rabbit.cluster_formation.randomized_delay_range",
+{mapping, "cluster_formation.randomized_startup_delay_range.max", "rabbit.cluster_formation.randomized_startup_delay_range",
[{datatype, integer}]}.
-{translation, "rabbit.cluster_formation.randomized_delay_range",
+{translation, "rabbit.cluster_formation.randomized_startup_delay_range",
fun(Conf) ->
Min = cuttlefish:conf_get("cluster_formation.randomized_startup_delay_range.min", Conf, undefined),
Max = cuttlefish:conf_get("cluster_formation.randomized_startup_delay_range.max", Conf, undefined),
diff --git a/src/rabbit_mnesia.erl b/src/rabbit_mnesia.erl
index 10b6aef609..793d365bf0 100644
--- a/src/rabbit_mnesia.erl
+++ b/src/rabbit_mnesia.erl
@@ -138,6 +138,7 @@ init_with_lock(0, _, InitFromConfig) ->
init_with_lock(Retries, Timeout, InitFromConfig) ->
case rabbit_peer_discovery:lock() of
not_supported ->
+ rabbit_log:info("Peer discovery backend does not support locking, falling back to randomized delay"),
%% See rabbitmq/rabbitmq-server#1202 for details.
rabbit_peer_discovery:maybe_inject_randomized_delay(),
InitFromConfig(),
diff --git a/test/config_schema_SUITE_data/rabbit.snippets b/test/config_schema_SUITE_data/rabbit.snippets
index 12c2774501..e4dda9f368 100644
--- a/test/config_schema_SUITE_data/rabbit.snippets
+++ b/test/config_schema_SUITE_data/rabbit.snippets
@@ -405,21 +405,21 @@ tcp_listen_options.exit_on_close = false",
"cluster_formation.randomized_startup_delay_range.min = 10
cluster_formation.randomized_startup_delay_range.max = 30",
[{rabbit, [{cluster_formation, [
- {randomized_delay_range, {10, 30}}
+ {randomized_startup_delay_range, {10, 30}}
]}]}],
[]},
{cluster_formation_randomized_startup_delay_min_only,
"cluster_formation.randomized_startup_delay_range.min = 10",
[{rabbit, [{cluster_formation, [
- {randomized_delay_range, {10, 60}}
+ {randomized_startup_delay_range, {10, 60}}
]}]}],
[]},
{cluster_formation_randomized_startup_delay_max_only,
"cluster_formation.randomized_startup_delay_range.max = 30",
[{rabbit, [{cluster_formation, [
- {randomized_delay_range, {5, 30}}
+ {randomized_startup_delay_range, {5, 30}}
]}]}],
[]},