Commit 6c679687 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent ce30f3f0
...@@ -750,7 +750,7 @@ class Test(NEOThreadedTest): ...@@ -750,7 +750,7 @@ class Test(NEOThreadedTest):
finally: finally:
cluster.stop() cluster.stop()
def test2Clusters(self): def test2Clusters(self): # NOTE
cluster1 = NEOCluster() cluster1 = NEOCluster()
cluster2 = NEOCluster() cluster2 = NEOCluster()
try: try:
...@@ -787,7 +787,7 @@ class Test(NEOThreadedTest): ...@@ -787,7 +787,7 @@ class Test(NEOThreadedTest):
cluster.stop() cluster.stop()
def testShutdown(self): def testShutdown(self):
# BUG: Due to bugs in election, master nodes sometimes crash, or they # BUG: Due to bugs in election, master nodes sometimes crash, or they # <- NOTE
# declare themselves primary too quickly. The consequence is # declare themselves primary too quickly. The consequence is
# often an endless tic loop. # often an endless tic loop.
cluster = NEOCluster(master_count=3, partitions=10, cluster = NEOCluster(master_count=3, partitions=10,
...@@ -1001,7 +1001,7 @@ class Test(NEOThreadedTest): ...@@ -1001,7 +1001,7 @@ class Test(NEOThreadedTest):
c.getConnection().close() c.getConnection().close()
c, = cluster.storage.nm.getClientList() c, = cluster.storage.nm.getClientList()
c.getConnection().close() c.getConnection().close()
self.tic() #self.tic() # NOTE works ok with tic() commented
# modify x with another client # modify x with another client
client = cluster.newClient() client = cluster.newClient()
...@@ -1012,7 +1012,7 @@ class Test(NEOThreadedTest): ...@@ -1012,7 +1012,7 @@ class Test(NEOThreadedTest):
tid = client.tpc_finish(txn, None) tid = client.tpc_finish(txn, None)
finally: finally:
client.close() client.close()
self.tic() #self.tic() # NOTE ----//----
# Check reconnection to the master and storage. # Check reconnection to the master and storage.
self.assertTrue(cluster.client.history(x1._p_oid)) self.assertTrue(cluster.client.history(x1._p_oid))
......
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