Commit a54aada5 authored by Julien Muchembled's avatar Julien Muchembled

admin: use 'boostrap' flag to discard partition changes received too early

This should fix the following random failure:

Traceback (most recent call last):
  File "neo/tests/functional/", line 140, in start
    execfile(command, {"__name__": "__main__"})
  File "./neoadmin", line 22, in <module>
  File "neo/scripts/", line 66, in main
  File "neo/admin/", line 103, in run
  File "neo/lib/", line 100, in poll
  File "neo/lib/", line 532, in process
    self._handlers.handle(self, packet)
  File "neo/lib/", line 158, in handle
    self._handle(connection, packet)
  File "neo/lib/", line 174, in _handle
    handler.packetReceived(connection, packet)
  File "neo/lib/", line 93, in packetReceived
    self.dispatch(conn, packet)
  File "neo/admin/", line 142, in dispatch
    super(MasterEventHandler, self).dispatch(conn, packet)
  File "neo/lib/", line 57, in dispatch
    method(conn, *args)
  File "neo/admin/", line 156, in sendPartitionTable, row_list,
  File "neo/lib/", line 219, in load
    assert node is not None

git-svn-id: 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 5917e6e8
......@@ -80,6 +80,7 @@ class Application(object):
def reset(self):
self.bootstrapped = False
self.master_conn = None
self.master_node = None
......@@ -146,10 +146,12 @@ class MasterEventHandler(EventHandler):
def notifyPartitionChanges(self, conn, ptid, cell_list):, cell_list,
if, cell_list,
def answerPartitionTable(self, conn, ptid, row_list):, row_list, = True
def sendPartitionTable(self, conn, ptid, row_list):, row_list,
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