Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitf5f5e7b

Browse files
committed
Make 009_twophase.pl test pass with recovery_min_apply_delay set
The test failed if you ran the regression tests with TEMP_CONFIG withrecovery_min_apply_delay = '500ms'. Fix the race condition by waitingfor transaction to be applied in the replica, like in a few othertests.The failing test was introduced in commitcbfbda7. Backpatch to allsupported versions like that commit (except v12, which is no longersupported).Reported-by: Alexander LakhinDiscussion:https://www.postgresql.org/message-id/09e2a70a-a6c2-4b5c-aeae-040a7449c9f2@gmail.com
1 parent2a23dbc commitf5f5e7b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

‎src/test/recovery/t/009_twophase.pl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ sub configure_and_reload
315315

316316
$cur_primary->psql(
317317
'postgres',"
318+
SET synchronous_commit='remote_apply'; -- To ensure the standby is caught up
318319
CREATE TABLE t_009_tbl_standby_mvcc (id int, msg text);
319320
BEGIN;
320321
INSERT INTO t_009_tbl_standby_mvcc VALUES (1, 'issued to${cur_primary_name}');

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp