Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad Assign NameStore IfExp BoolOpAnd CompareEq Call NameLoad AttributeLoad NameLoad attr Num CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num Str NameLoad NameLoad While NameLoad body If NameLoad body Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num Expr Call NameLoad NameLoad Expr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body For TupleStore NameStore NameStore NameLoad body TryFinally body Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str If CompareIn Str Call AttributeLoad NameLoad attr Num body Return TupleLoad NameLoad NameLoad finalbody Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Print BinOpMod Str TupleLoad NameLoad Assign TupleStore NameStore NameStore NameLoad Expr Call NameLoad ListLoad BinOpMod Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Print BinOpMod Str TupleLoad NameLoad Assign TupleStore NameStore NameStore NameLoad Expr Call NameLoad ListLoad BinOpMod Str NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Print Str Expr Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args defaults body Assign NameStore ListLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Num Num Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Call NameLoad
N/A N/A  Make node from a local ZooKeeper cluster fail  N/A sys N/A os N/A re N/A optparse N/A random N/A time N/A signal N/A socket subprocess call N/A CURRENT_DIR N/A N/A N/A os path dirname N/A N/A N/A os path abspath __file__ main N/A N/A N/A N/A N/A nodes N/A get_nodes N/A leader N/A N/A N/A N/A len N/A sys argv 2 N/A N/A N/A sys argv N/A 1 leader True False N/A True N/A N/A leader N/A N/A n N/A find_leader nodes N/A N/A n N/A N/A random choice nodes N/A N/A kill_node n N/A N/A N/A time sleep 5 N/A N/A start_node n N/A N/A wait_join_cluster n N/A N/A N/A time sleep 5 N/A find_leader N/A N/A nodes N/A N/A N/A N/A host port nodes N/A N/A N/A N/A s N/A N/A socket socket N/A N/A N/A s connect N/A host N/A int port N/A N/A N/A s send stat N/A N/A Mode: leader N/A N/A s recv 1024 N/A N/A N/A host port N/A N/A N/A N/A s close N/A kill_node N/A N/A n N/A N/A N/A N/A stoping node %s ... N/A n N/A N/A host port n N/A N/A call N/A N/A ./node_stop.sh %s port shell True N/A start_node N/A N/A n N/A N/A N/A N/A re-starting the node %s ... N/A n N/A N/A host port n N/A N/A call N/A N/A ./node_start.sh %s port shell True N/A wait_join_cluster N/A N/A n N/A N/A N/A waiting for node to join the cluster ... N/A N/A N/A time sleep 5 N/A get_nodes N/A N/A N/A N/A N/A nodes N/A N/A f N/A N/A os listdir CURRENT_DIR N/A N/A N/A N/A N/A os path isdir f N/A N/A m N/A N/A re match ^(\w+?):(\d+)$ f N/A N/A m None N/A N/A N/A N/A nodes append N/A N/A m group 1 2 N/A nodes N/A N/A N/A __name__ __main__ N/A N/A N/A N/A sys exit N/A main