Commit 85c4f63a authored by Grégory Wisniewski's avatar Grégory Wisniewski

Handle this error with an exception.


git-svn-id: https://svn.erp5.org/repos/neo/trunk@1347 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent aef4e539
......@@ -18,7 +18,8 @@
from neo import logging
from neo import protocol
from neo.protocol import UnexpectedPacketError, CellStates, ErrorCodes
from neo.protocol import UnexpectedPacketError, ProtocolError
from neo.protocol import CellStates, ErrorCodes
from neo.master.handlers import BaseServiceHandler
from neo.exception import OperationFailure
from neo.util import dump
......@@ -107,9 +108,7 @@ class StorageServiceHandler(BaseServiceHandler):
msg = "node %s telling that it is UP TO DATE for offset \
%s but where %s for that offset" % (dump(node.getUUID()), offset,
xcell.getState())
logging.warning(msg)
self.handleError(conn, packet, ErrorCodes.INTERNAL_ERROR, msg)
return
raise ProtocolError(msg)
app.pt.setCell(offset, node, CellStates.UP_TO_DATE)
......
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