Commit 1657753a authored by Vincent Pelletier's avatar Vincent Pelletier

It might not be a good idea to be so strict about partition table changes. Add...

It might not be a good idea to be so strict about partition table changes. Add XXX to mark this in the code.


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1030 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 53496d04
......@@ -133,8 +133,10 @@ class Application(object):
if self.pt is None:
self.pt = PartitionTable(num_partitions, num_replicas)
elif self.pt.getPartitions() != num_partitions:
# XXX: shouldn't we recover instead of raising ?
raise RuntimeError('the number of partitions is inconsistent')
elif self.pt.getReplicas() != num_replicas:
# XXX: shouldn't we recover instead of raising ?
raise RuntimeError('the number of replicas is inconsistent')
# passive handler
......
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