Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed long wait bug when scaling up a cluster with the -g flag. #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 6 additions & 2 deletions images/portal/resources/toolset/toolset/commands/scale.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,14 @@ def _query(zk):
def _spin():
def _query(zk):
replies = fire(zk, self.cluster, 'info')
return [seq for seq, _, _ in replies.values()]
return [(seq, hints['application'], hints['task']) for (seq, hints, _) in replies.values()]

js = run(self.proxy, _query)
assert len(js) == target, 'not all pods running yet'
if self.group is not None:
nb_pods = sum(1 for (_, key, _) in js if key == app)
else:
nb_pods = len(js)
assert nb_pods == target, 'not all pods running yet'
return js

_spin()
Expand Down