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

Commit3950e07

Browse files
Avoid race condition in logical replication test
Wait for slot to become inactive before continuing.Author: Petr Jelinek
1 parent44654f3 commit3950e07

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/test/recovery/t/006_logical_decoding.pl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,11 @@
7878
is($stdout_recv,$expected,
7979
'got same expected output from pg_recvlogical decoding session');
8080

81+
$node_master->poll_query_until('postgres',
82+
"SELECT EXISTS (SELECT 1 FROM pg_replication_slots WHERE slot_name = 'test_slot' AND active_pid IS NULL)"
83+
)
84+
ordie"slot never became inactive";
85+
8186
$stdout_recv =$node_master->pg_recvlogical_upto(
8287
'postgres','test_slot',$endpos, 10,
8388
'include-xids'=>'0',

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp