Content-Length: 304095 | pFad | http://github.com/postgrespro/postgres_cluster/commit/a0b40e319585e18dca9bfe2f34765aca7f94c2dd

B7 in/out test for raftable · postgrespro/postgres_cluster@a0b40e3 · GitHub
Skip to content

Commit a0b40e3

Browse files
committed
in/out test for raftable
1 parent c616219 commit a0b40e3

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

contrib/raftable/tests/test_recovery.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,35 @@ def test_1_node_disconnect(self):
4444
# check we didn't stuck in set op
4545
self.assertTrue(agg['setkey']['running_latency'] < 3)
4646

47+
def test_1_node_in_node_out(self):
48+
print('### InOutTest ###')
49+
50+
subprocess.check_call(['blockade','partition','node3'])
51+
print('Node3 disconnected')
52+
53+
print('Waiting 5s')
54+
time.sleep(5)
55+
56+
for client in self.clients:
57+
agg = client.history.aggregate()
58+
print(agg)
59+
# check we didn't stuck in set op
60+
self.assertTrue(agg['setkey']['running_latency'] < 3)
61+
62+
subprocess.check_call(['blockade','join'])
63+
print('Node3 connected')
64+
65+
print('Waiting 5s')
66+
time.sleep(5)
67+
68+
for client in self.clients:
69+
agg = client.history.aggregate()
70+
print(agg)
71+
# check we didn't stuck in set op
72+
self.assertTrue(agg['setkey']['running_latency'] < 3)
73+
74+
75+
4776
if __name__ == '__main__':
4877
unittest.main()
4978

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/a0b40e319585e18dca9bfe2f34765aca7f94c2dd

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy