We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dc5a703 + 274f12f commit 4a122dfCopy full SHA for 4a122df
deps/rabbit/src/rabbit_ra_systems.erl
@@ -43,8 +43,8 @@ setup(_) ->
43
-spec all_ra_systems() -> [ra_system_name()].
44
45
all_ra_systems() ->
46
- [quorum_queues,
47
- coordination].
+ [coordination,
+ quorum_queues].
48
49
-spec are_running() -> AreRunning when
50
AreRunning :: boolean().
@@ -165,7 +165,10 @@ ensure_stopped() ->
165
?LOG_DEBUG(
166
"Stopping Ra systems",
167
#{domain => ?RMQLOG_DOMAIN_GLOBAL}),
168
- lists:foreach(fun ensure_ra_system_stopped/1, all_ra_systems()),
+ %% lists:reverse/1 is used to stop systems in the same order as would be
169
+ %% done if the ra application was terminated.
170
+ lists:foreach(fun ensure_ra_system_stopped/1,
171
+ lists:reverse(all_ra_systems())),
172
173
"Ra systems stopped",
174
0 commit comments