Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
#40 - Pause rebalance on start/stop/restart instead of stopping it.
Browse files Browse the repository at this point in the history
  • Loading branch information
antban committed Aug 11, 2016
1 parent d3aa5c2 commit c240496
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bubuku/features/rebalance.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ def _removal_func():
def run(self, current_actions):
# Stop rebalance if someone is restarting
if any([a in current_actions for a in ['restart', 'start', 'stop']]):
_LOG.warning("Rebalance stopped, because other blocking events running: {}".format(current_actions))
return False
_LOG.warning("Rebalance paused, because other blocking events running: {}".format(current_actions))
return True

if self.zk.is_rebalancing():
return True
Expand Down

0 comments on commit c240496

Please sign in to comment.