Skip to content

Commit dccdc8e

Browse files
Alexey Masterovvbwagner
authored andcommitted
[PGPRO-4864] Fix for errors in rum test causing lag
between write and replay on replica. Now test will wait for reply on target database not write to wal tags: rum
1 parent 39ccbd6 commit dccdc8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/001_wal.pl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ sub test_index_replay
2323
if ($server_version < 100000)
2424
{
2525
$caughtup_query =
26-
"SELECT pg_current_xlog_location() <= write_location FROM pg_stat_replication WHERE application_name = '$applname';";
26+
"SELECT pg_current_xlog_location() <= replay_location FROM pg_stat_replication WHERE application_name = '$applname';";
2727
}
2828
else
2929
{
3030
$caughtup_query =
31-
"SELECT pg_current_wal_lsn() <= write_lsn FROM pg_stat_replication WHERE application_name = '$applname';";
31+
"SELECT pg_current_wal_lsn() <= replay_lsn FROM pg_stat_replication WHERE application_name = '$applname';";
3232
}
3333
$node_master->poll_query_until('postgres', $caughtup_query)
3434
or die "Timed out while waiting for standby 1 to catch up";

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy