Add node health to fault states
Adjusts ordering and ensures that node health states are included in faults if they are less than 50%. Also adjusts fault ID generation and runs fault checks only coordinator nodes to avoid too many runs.
This commit is contained in:
@ -328,19 +328,19 @@ class ZKHandler(object):
|
||||
|
||||
return True
|
||||
|
||||
def children(self, key, retval=None):
|
||||
def children(self, key):
|
||||
"""
|
||||
Lists all children of a key
|
||||
"""
|
||||
try:
|
||||
path = self.get_schema_path(key)
|
||||
if path is None:
|
||||
# This path is invalid; this is likely due to missing schema entries, so return None
|
||||
return retval
|
||||
raise NoNodeError
|
||||
|
||||
return self.zk_conn.get_children(path)
|
||||
except NoNodeError:
|
||||
return retval
|
||||
# This path is invalid; this is likely due to missing schema entries, so return None
|
||||
return None
|
||||
|
||||
def rename(self, kkpairs):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user