Skip to content

Commit 7ae38fa

Browse files
anuthandave-finlay
authored andcommitted
MB-29029: Wait for leader_activity cleanup.
Change-Id: I644f3f16513ab63e57c493a311866c78cbecaf88 Reviewed-on: http://review.couchbase.org/92441 Tested-by: Abhijeeth Nuthan <[email protected]> Well-Formed: Build Bot <[email protected]> Reviewed-by: Dave Finlay <[email protected]>
1 parent 54888c5 commit 7ae38fa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ns_orchestrator.erl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,10 @@ janitor_running(Msg, From, #janitor_state{cleanup_id=ID}) when ID =/= undefined
742742
{cleanup_done, _, _} ->
743743
ok
744744
end,
745+
%% Temporary hack to fix MB-29029.
746+
%% Wait till leader_activities has a chance to cleanup activities related
747+
%% to janitor processes.
748+
timer:sleep(500),
745749
idle(Msg, From, #idle_state{}).
746750

747751
%% Asynchronous rebalancing events

0 commit comments

Comments
 (0)