Commit 61d37895 authored by Julien Muchembled's avatar Julien Muchembled

Some minor cleanup

parent 49edad32
......@@ -300,9 +300,7 @@ class TestRunner(BenchmarkRunner):
def main(args=None):
runner = TestRunner()
runner.run()
if not runner.was_successful():
sys.exit(1)
sys.exit(0)
return sys.exit(not runner.was_successful())
if __name__ == "__main__":
main()
......@@ -36,7 +36,7 @@ class BaseMasterHandler(EventHandler):
raise PrimaryFailure('re-election occurs')
def notifyClusterInformation(self, conn, state):
neo.lib.logging.warning('ignoring notify cluster information in %s' %
neo.lib.logging.warning('ignoring notify cluster information in %s',
self.__class__.__name__)
def notifyLastOID(self, conn, oid):
......@@ -49,7 +49,7 @@ class BaseMasterHandler(EventHandler):
for node_type, addr, uuid, state in node_list:
if uuid == self.app.uuid:
# This is me, do what the master tell me
neo.lib.logging.info("I was told I'm %s" %(state))
neo.lib.logging.info("I was told I'm %s", state)
if state in (NodeStates.DOWN, NodeStates.TEMPORARILY_DOWN,
NodeStates.BROKEN):
erase = state == NodeStates.DOWN
......
......@@ -38,9 +38,8 @@ class VerificationHandler(BaseMasterHandler):
conn.answer(Packets.AnswerLastIDs(oid, tid, app.pt.getID()))
def askPartitionTable(self, conn):
ptid = self.app.pt.getID()
row_list = self.app.pt.getRowList()
conn.answer(Packets.AnswerPartitionTable(ptid, row_list))
pt = self.app.pt
conn.answer(Packets.AnswerPartitionTable(pt.getID(), pt.getRowList()))
def notifyPartitionChanges(self, conn, ptid, cell_list):
"""This is very similar to Send Partition Table, except that
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment