[Neo-report] r2021 vincent - /trunk/neo/master/handlers/election.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Apr 26 09:49:00 CEST 2010
Author: vincent
Date: Mon Apr 26 09:48:56 2010
New Revision: 2021
Log:
It is valid for a node to be unknown at disconnection.
Such node might have died between connection establishment and answering
identification message, possibly causing ECONNRESET.
Modified:
trunk/neo/master/handlers/election.py
Modified: trunk/neo/master/handlers/election.py
==============================================================================
--- trunk/neo/master/handlers/election.py [iso-8859-1] (original)
+++ trunk/neo/master/handlers/election.py [iso-8859-1] Mon Apr 26 09:48:56 2010
@@ -66,8 +66,6 @@
def _connectionLost(self, conn):
addr = conn.getAddress()
node = self.app.nm.getByAddress(addr)
- assert not node.isUnknown(), (dump(self.app.uuid), node.whoSetState(),
- node.getState())
node.setTemporarilyDown()
self.app.negotiating_master_node_set.discard(addr)
MasterHandler.connectionClosed(self, conn)
More information about the Neo-report
mailing list