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

Commit 941421a

Browse files
committed
carefully check status of awaits in tap tests
1 parent c0a9ace commit 941421a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Cluster.pm

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ sub configure
134134
multimaster.workers = 1
135135
multimaster.node_id = $id
136136
multimaster.conn_strings = '$connstr'
137-
multimaster.heartbeat_recv_timeout = 1050
137+
multimaster.heartbeat_recv_timeout = 4050
138138
multimaster.heartbeat_send_timeout = 250
139139
multimaster.max_nodes = 6
140140
multimaster.ignore_tables_without_pk = false
@@ -306,7 +306,7 @@ sub pgbench_async()
306306
sub pgbench_await()
307307
{
308308
my ($self, $pgbench_handle) = @_;
309-
IPC::Run::finish($pgbench_handle) || BAIL_OUT("pgbench exited with $?");
309+
IPC::Run::finish($pgbench_handle) or diag("WARNING: pgbench exited with $?");
310310
note("finished pgbench");
311311
}
312312

@@ -401,7 +401,11 @@ sub await_nodes()
401401

402402
foreach my $i (@nodenums)
403403
{
404-
$self->{nodes}->[$i]->poll_query_until('postgres', "select 't'");
404+
if (!$self->{nodes}->[$i]->poll_query_until('postgres', "select 't'"))
405+
{
406+
# sleep(3600);
407+
die "Timed out while waiting for mm node to became online";
408+
}
405409
}
406410
}
407411

0 commit comments

Comments
 (0)