Commit 91b156a9 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Oudate cell of a lost node only if it is not the last for a partition.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@910 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 80ef9f1e
......@@ -42,9 +42,11 @@ class StorageServiceHandler(BaseServiceHandler):
# overload since others nodes known that it's temporarily down and thus,
# outdate by themselves its cells.
logging.info('storage node lost')
self.app.outdateAndBroadcastPartition()
if not self.app.pt.operational():
raise OperationFailure, 'cannot continue operation'
# this is intentionaly placed after the raise because the last cell in a
# partition must not oudated to allows a cluster restart.
self.app.outdateAndBroadcastPartition()
def handleNotifyInformationLocked(self, conn, packet, tid):
uuid = conn.getUUID()
......
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