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

Commit fc463e0

Browse files
knizhnikkelvich
authored andcommitted
Print cluster state
1 parent 5ed93d8 commit fc463e0

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

t/001_basic_recovery.pl

+6-3
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,12 @@
8080

8181
sleep(5); # Wait until recovery of node will be completed
8282

83-
$cluster->psql(0, 'postgres', "select * from mtm.get_cluster_state();");
84-
$cluster->psql(1, 'postgres', "select * from mtm.get_cluster_state();");
85-
$cluster->psql(2, 'postgres', "select * from mtm.get_cluster_state();");
83+
$cluster->psql(0, 'postgres', "select * from mtm.get_cluster_state();", stdout => \$psql_out);
84+
diag("Node 1 status: $psql_out")
85+
$cluster->psql(1, 'postgres', "select * from mtm.get_cluster_state();", stdout => \$psql_out);
86+
diag("Node 2 status: $psql_out")
87+
$cluster->psql(2, 'postgres', "select * from mtm.get_cluster_state();", stdout => \$psql_out);
88+
diag("Node 3 status: $psql_out")
8689

8790
diag("inserting 8 on node 1");
8891
$cluster->psql(0, 'postgres', "insert into t values(8, 80);");

0 commit comments

Comments
 (0)