Skip to content

Commit

Permalink
scylla_cluster,scylla_node: increase debug timeout for `watch_rest_fo…
Browse files Browse the repository at this point in the history
…r_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 25, 2023
1 parent 65872f6 commit 730a518
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, timeout=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 730a518

Please sign in to comment.