Skip to content

Commit

Permalink
Merge pull request #6632 from rabbitmq/mk-aten-poll-interval-in-rabbi…
Browse files Browse the repository at this point in the history
…tmq.conf

Expose aten poll interval in rabbitmq.conf
  • Loading branch information
michaelklishin committed Dec 12, 2022
2 parents a2533a6 + 936e003 commit aec3dcb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
14 changes: 14 additions & 0 deletions deps/rabbit/priv/schema/rabbit.schema
Expand Up @@ -2312,6 +2312,20 @@ end}.
end
}.

{mapping, "raft.adaptive_failure_detector.poll_interval", "aten.poll_interval", [
{datatype, integer},
{validators, ["non_zero_positive_integer"]}
]}.

{translation, "aten.poll_interval",
fun(Conf) ->
case cuttlefish:conf_get("raft.adaptive_failure_detector.poll_interval", Conf, undefined) of
undefined -> cuttlefish:unset();
Val -> Val
end
end
}.

%%
%% Backing queue version
%%
Expand Down
7 changes: 7 additions & 0 deletions deps/rabbit/test/config_schema_SUITE_data/rabbit.snippets
Expand Up @@ -844,6 +844,13 @@ credential_validator.regexp = ^abc\\d+",
]}],
[]},

{raft_adaptive_failure_detector_poll_interval,
"raft.adaptive_failure_detector.poll_interval = 10000",
[{aten, [
{poll_interval, 10000}
]}],
[]},

%%
%% Backing queue version
%%
Expand Down

0 comments on commit aec3dcb

Please sign in to comment.