Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1fab7ad

Browse files
committed
await neighbors after node crash in several more places
1 parent 720ed61 commit 1fab7ad

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

t/004_recovery.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
(select * from pgbench_accounts order by aid) t;";
3030

3131
$cluster->{nodes}->[2]->stop('fast');
32+
$cluster->await_nodes( (0,1) );
3233

3334
$cluster->pgbench(0, ('-n','-N', -T => '4') );
3435
$cluster->pgbench(1, ('-n','-N', -T => '4') );

t/005_add_stop_node.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@
8787

8888
note('Stopping node with slot drop');
8989
# $cluster->psql(0, 'postgres', "select mtm.stop_node(3,'t')");
90-
# await for comletion?
9190
$cluster->{nodes}->[2]->stop('fast');
91+
$cluster->await_nodes( (0,1,3) );
9292

9393
$cluster->pgbench(0, ('-N', '-n', -T => '1') );
9494
$cluster->pgbench(1, ('-N', '-n', -T => '1') );

0 commit comments

Comments
 (0)