Skip to content

Commit

Permalink
Fix up/down message detection
Browse files Browse the repository at this point in the history
  • Loading branch information
driftx committed Jul 16, 2013
1 parent 26fdd9a commit 79e361f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ccmlib/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def watch_log_for_death(self, nodes, from_mark=None, timeout=600):
the log is watched from the beginning.
"""
tofind = nodes if isinstance(nodes, list) else [nodes]
tofind = [ "%s is now dead" % node.address() for node in tofind ]
tofind = [ "%s is now [dead|DOWN]" % node.address() for node in tofind ]
self.watch_log_for(tofind, from_mark=from_mark, timeout=timeout)

def watch_log_for_alive(self, nodes, from_mark=None, timeout=60):
Expand All @@ -290,7 +290,7 @@ def watch_log_for_alive(self, nodes, from_mark=None, timeout=60):
nodes are marked UP. This method works similarily to watch_log_for_death.
"""
tofind = nodes if isinstance(nodes, list) else [nodes]
tofind = [ "%s is now UP" % node.address() for node in tofind ]
tofind = [ "%s.* now UP" % node.address() for node in tofind ]
self.watch_log_for(tofind, from_mark=from_mark, timeout=timeout)

def start(self, join_ring=True, no_wait=False, verbose=False, update_pid=True, wait_other_notice=False, replace_token=None, jvm_args=[], wait_for_binary_proto=False):
Expand Down

0 comments on commit 79e361f

Please sign in to comment.