In pg_rewind test suite, triple promote timeout to 90s.
authorNoah Misch <noah@leadboat.com>
Thu, 11 Feb 2016 01:34:57 +0000 (20:34 -0500)
committerNoah Misch <noah@leadboat.com>
Thu, 11 Feb 2016 01:34:57 +0000 (20:34 -0500)
Thirty seconds was not consistently enough for promotion to complete on
buildfarm members sungazer and tern.  Experiments suggest 43s would have
been enough.  Back-patch to 9.5, where pg_rewind was introduced.

src/test/perl/PostgresNode.pm

index 6152c601bdc2830631b99e887b06162420663bb1..2ab9aee334aff48a27acd58ae66da9f97ef7a2f7 100644 (file)
@@ -404,7 +404,7 @@ sub poll_query_until
 {
    my ($self, $dbname, $query) = @_;
 
-   my $max_attempts = 30;
+   my $max_attempts = 90;
    my $attempts     = 0;
    my ($stdout, $stderr);
 
@@ -426,7 +426,7 @@ sub poll_query_until
        $attempts++;
    }
 
-   # The query result didn't change in 30 seconds. Give up. Print the stderr
+   # The query result didn't change in 90 seconds. Give up. Print the stderr
    # from the last attempt, hopefully that's useful for debugging.
    diag $stderr;
    return 0;