Skip to content

Commit

Permalink
scylla_cluster,scylla_node: incress debug timeout for `watch_rest_for…
Browse files Browse the repository at this point in the history
…_alive`

seems like the 360s default for debug for `watch_rest_for_alive`
isn't enough as it was for `watch_log_for_alive`,
making it 600s (10min)

Fix: scylladb#477
  • Loading branch information
fruch committed Jul 24, 2023
1 parent 65872f6 commit b36471f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ccmlib/scylla_cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ def start_nodes(self, nodes=None, no_wait=False, verbose=False, wait_for_binary_
for old_node, _ in marks:
for node, _, _ in started:
if old_node is not node:
old_node.watch_rest_for_alive(node)
t = 120 if self.scylla_mode != 'debug' else 600
old_node.watch_rest_for_alive(node, t=t)

return started

Expand Down
2 changes: 1 addition & 1 deletion ccmlib/scylla_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def _start_scylla(self, args, marks, update_pid, wait_other_notice,

if wait_other_notice:
for node, _ in marks:
t = timeout if timeout is not None else 120 if self.cluster.scylla_mode != 'debug' else 360
t = timeout if timeout is not None else 120 if self.cluster.scylla_mode != 'debug' else 600
node.watch_rest_for_alive(self, timeout=t)
self.watch_rest_for_alive(node, timeout=t)

Expand Down

0 comments on commit b36471f

Please sign in to comment.