|
3 | 3 | use PostgresNode;
|
4 | 4 | use Cluster;
|
5 | 5 | use TestLib;
|
6 |
| -use Test::More tests => 8; |
| 6 | +use Test::More tests => 7; |
7 | 7 |
|
8 | 8 | my $cluster = new Cluster(3);
|
9 | 9 | $cluster->init();
|
|
98 | 98 | $cluster->pgbench(3, ('-N', '-n', -T => '1') );
|
99 | 99 | is($cluster->is_data_identic( (0,1,3) ), 1, "hard stop / resume");
|
100 | 100 |
|
101 |
| -$cluster->psql(0, 'postgres', "select mtm.recover_node(3)"); |
| 101 | +# $cluster->psql(0, 'postgres', "select mtm.recover_node(3)"); |
102 | 102 |
|
103 |
| -sleep(5); |
| 103 | +# sleep(5); |
104 | 104 |
|
105 |
| -# now we need to perform backup from live node |
106 |
| -$cluster->add_node(port => $cluster->{nodes}->[2]->{_port}, |
107 |
| - arbiter_port => $cluster->{nodes}->[2]->{arbiter_port}, |
108 |
| - node_id => 3); |
| 105 | +# # now we need to perform backup from live node |
| 106 | +# $cluster->add_node(port => $cluster->{nodes}->[2]->{_port}, |
| 107 | +# arbiter_port => $cluster->{nodes}->[2]->{arbiter_port}, |
| 108 | +# node_id => 3); |
109 | 109 |
|
110 |
| -my $dd = $cluster->{nodes}->[4]->data_dir; |
111 |
| -note("preparing to start $dd"); |
| 110 | +# my $dd = $cluster->{nodes}->[4]->data_dir; |
| 111 | +# note("preparing to start $dd"); |
112 | 112 |
|
113 |
| -$cluster->{nodes}->[4]->start; |
114 |
| -$cluster->await_nodes( (4,0,1,3) ); |
115 |
| -$cluster->pgbench(0, ('-N', '-n', -T => '1') ); |
116 |
| -$cluster->pgbench(1, ('-N', '-n', -T => '1') ); |
117 |
| -$cluster->pgbench(3, ('-N', '-n', -T => '1') ); |
118 |
| -$cluster->pgbench(4, ('-N', '-n', -T => '1') ); |
119 |
| -is($cluster->is_data_identic( (0,1,3,4) ), 1, "hard stop / resume"); |
| 113 | +# $cluster->{nodes}->[4]->start; |
| 114 | +# $cluster->await_nodes( (4,0,1,3) ); |
| 115 | +# $cluster->pgbench(0, ('-N', '-n', -T => '1') ); |
| 116 | +# $cluster->pgbench(1, ('-N', '-n', -T => '1') ); |
| 117 | +# $cluster->pgbench(3, ('-N', '-n', -T => '1') ); |
| 118 | +# $cluster->pgbench(4, ('-N', '-n', -T => '1') ); |
| 119 | +# is($cluster->is_data_identic( (0,1,3,4) ), 1, "hard stop / resume"); |
120 | 120 |
|
121 | 121 | ok($cluster->stop('fast'), "cluster stops");
|
122 | 122 |
|
|
0 commit comments