Commit 39544c84 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Send an error to the storage node if the partition table sent is invalid...

Send an error to the storage node if the partition table sent is invalid instead of killing the master.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1474 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 08d0e27f
......@@ -17,7 +17,7 @@
from neo import logging
from neo.protocol import Packets
from neo.protocol import Packets, UnexpectedPacketError
from neo.master.handlers import MasterHandler
from neo.util import dump
......@@ -56,5 +56,8 @@ class RecoveryHandler(MasterHandler):
if node is None:
app.nm.createStorage(uuid=uuid)
# load partition in memory
try:
self.app.pt.load(ptid, row_list, self.app.nm)
except IndexError:
raise UnexpectedPacketError('Invalid offset')
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