|
86 | 86 | $cluster->pgbench(2, ('-N', -T => '1') );
|
87 | 87 |
|
88 | 88 | # kill node while neighbour is under load
|
89 |
| -my $pgb_handle = $cluster->pgbench_async(1, ('-N', -T => '20') ); |
| 89 | +my $pgb_handle = $cluster->pgbench_async(1, ('-N', -T => '20', -c => '5') ); |
90 | 90 | sleep(5);
|
91 | 91 | $cluster->{nodes}->[2]->stop('fast');
|
92 | 92 | $cluster->pgbench_await($pgb_handle);
|
93 | 93 |
|
94 | 94 | # start node while neighbour is under load
|
95 |
| -$pgb_handle = $cluster->pgbench_async(0, ('-N', -T => '20') ); |
| 95 | +$pgb_handle = $cluster->pgbench_async(0, ('-N', -T => '20', -c => '5') ); |
96 | 96 | sleep(5);
|
97 | 97 | $cluster->{nodes}->[2]->start;
|
98 | 98 | $cluster->pgbench_await($pgb_handle);
|
|
115 | 115 | is($sum2, $sum0, "Check that sum_2 == sum_0");
|
116 | 116 | is($sum2, $sum1, "Check that sum_2 == sum_1");
|
117 | 117 |
|
| 118 | +$cluster->psql(0, 'postgres', "select count(*) from pg_prepared_xacts;", stdout => \$sum0); |
| 119 | +$cluster->psql(1, 'postgres', "select count(*) from pg_prepared_xacts;", stdout => \$sum1); |
| 120 | +$cluster->psql(2, 'postgres', "select count(*) from pg_prepared_xacts;", stdout => \$sum2); |
| 121 | + |
| 122 | +note("Number of prepared tx: $sum0, $sum1, $sum2"); |
| 123 | + |
118 | 124 | $cluster->{nodes}->[0]->stop('fast');
|
119 | 125 | $cluster->{nodes}->[1]->stop('fast');
|
120 | 126 | $cluster->{nodes}->[2]->stop('fast');
|
|
0 commit comments