Commit 258b8410 authored by Vincent Pelletier's avatar Vincent Pelletier

Add a test which just starts a cluster with more than 1000 partition (to test...

Add a test which just starts a cluster with more than 1000 partition (to test partition packet splitting).


git-svn-id: https://svn.erp5.org/repos/neo/branches/prototype3@1245 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent cb6c4be4
...@@ -370,7 +370,19 @@ class StorageTests(unittest.TestCase): ...@@ -370,7 +370,19 @@ class StorageTests(unittest.TestCase):
self.neo.expectAssignedCells(stopped[0].getUUID(), 10) self.neo.expectAssignedCells(stopped[0].getUUID(), 10)
self.__checkDatabase(self.neo.db_list[1]) self.__checkDatabase(self.neo.db_list[1])
def testStartWithManyPartitions(self):
neo = NEOCluster(['test_neo1'], port_base=20000,
partitions=5000, master_node_count=1)
neoctl = neo.getNEOCTL()
neo.setupDB()
neo.start()
try:
# Just tests that cluster can start with more than 1000 partitions.
# 1000, because currently there is an arbitrary packet split at
# every 1000 partition when sending a partition table.
neo.expectClusterState(protocol.RUNNING_CLUSTER_STATE)
finally:
neo.stop()
if __name__ == "__main__": if __name__ == "__main__":
unittest.main() unittest.main()
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