[Neo-report] [Bug #1679] Secondary masters fail on handler switcher assertion

Grégory Wisniewski gregory at nexedi.com
Tue Oct 12 17:32:36 CEST 2010


  Bug     : Secondary masters fail on handler switcher assertion
  Status  : Resolved
  Date    : 2010/03/10
  Link    : https://www.tiolive.com/nexedi/bug_module/1679/view
  Reporter   : Vincent Pelletier
  Request Project  : NEO R&D
  Assigned Project : NEO R&D

  Description:

Traceback (most recent call last):
  File "/home/vincent/git/neo/trunk/neomaster", line 70, in <module>
    app.run()
  File "/home/vincent/git/neo/trunk/neo/master/app.py", line 113, in run
    self.playSecondaryRole()
  File "/home/vincent/git/neo/trunk/neo/master/app.py", line 425, in playSecondaryRole
    self.em.poll(1)
  File "/home/vincent/git/neo/trunk/neo/event.py", line 95, in poll
    to_process.process()
  File "/home/vincent/git/neo/trunk/neo/connection.py", line 396, in process
    self._handlers.handle(packet)
  File "/home/vincent/git/neo/trunk/neo/connection.py", line 109, in handle
    handler.packetReceived(self._connection, packet)
  File "/home/vincent/git/neo/trunk/neo/master/handlers/election.py", line 38, in packetReceived
    MasterHandler.packetReceived(self, conn, packet)
  File "/home/vincent/git/neo/trunk/neo/handler.py", line 90, in packetReceived
    self.dispatch(conn, packet)
  File "/home/vincent/git/neo/trunk/neo/handler.py", line 57, in dispatch
    method(conn, *args)
  File "/home/vincent/git/neo/trunk/neo/master/handlers/election.py", line 165, in answerPrimary
    app.name
  File "/home/vincent/git/neo/trunk/neo/connection.py", line 44, in decorator
    return func(self, *args, **kw)
  File "/home/vincent/git/neo/trunk/neo/connection.py", line 498, in ask
    self._handlers.emit(packet)
  File "/home/vincent/git/neo/trunk/neo/connection.py", line 90, in emit
    assert len(self._pending) == 1 or self._pending[0][0]
AssertionError

 Messages :

++++++ Message #3 submitted by Grégory Wisniewski on 2010/10/12 15:32:35 UTC ++++++
Fixed by the new handler switcher that is unit-tested.

++++++ Message #2 submitted by Grégory Wisniewski on 2010/06/10 14:32:59 UTC ++++++
This was fixed by r2035.

++++++ Message #1 submitted by Vincent Pelletier on 2010/03/10 13:44:37 UTC ++++++


More information about the Neo-report mailing list