Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit dccdc8e

Browse filesBrowse files
Alexey Masterovvbwagner
Alexey Masterov
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
Copy full SHA for dccdc8e

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎t/001_wal.pl

Copy file name to clipboardExpand all lines: t/001_wal.pl
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.