summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2014-11-20 09:49:27 +0000
committerSimon MacMullen <simon@rabbitmq.com>2014-11-20 09:49:27 +0000
commit6a46f5528546ce11e5300cd9290197e9d631ac64 (patch)
tree94885bf3b6fc1713f54fce18872b47064efa81c5
parent82cdedfe4ce48bd9b457caefc82457a3dbca06d5 (diff)
downloadrabbitmq-server-git-6a46f5528546ce11e5300cd9290197e9d631ac64.tar.gz
Sleep to mitigate bug 26467 in the 3.4.x series.
-rw-r--r--src/app_utils.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/app_utils.erl b/src/app_utils.erl
index 87e6fa0b69..ad270518ad 100644
--- a/src/app_utils.erl
+++ b/src/app_utils.erl
@@ -62,7 +62,13 @@ start_applications(Apps, ErrorHandler) ->
stop_applications(Apps, ErrorHandler) ->
manage_applications(fun lists:foldr/3,
- fun application:stop/1,
+ %% Mitigation for bug 26467. TODO remove when we fix it.
+ fun (mnesia) ->
+ timer:sleep(1000),
+ application:stop(mnesia);
+ (App) ->
+ application:stop(App)
+ end,
fun application:start/1,
not_started,
ErrorHandler,