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

Commit4939488

Browse files
committed
Fix instability in subscription regression test.
005_encoding.pl neglected to wait for the subscriber's initialsynchronization to happen. While we have not seen this fail inthe buildfarm, it's pretty easy to demonstrate there's an issueby hacking logicalrep_worker_launch() to fail most of the time.Michael PaquierDiscussion:https://postgr.es/m/27032.1505749806@sss.pgh.pa.us
1 parent36b564c commit4939488

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎src/test/subscription/t/005_encoding.pl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ sub wait_for_caught_up
4141

4242
wait_for_caught_up($node_publisher,$appname);
4343

44+
# Wait for initial sync to finish as well
45+
my$synced_query =
46+
"SELECT count(1) = 0 FROM pg_subscription_rel WHERE srsubstate NOT IN ('s', 'r');";
47+
$node_subscriber->poll_query_until('postgres',$synced_query)
48+
ordie"Timed out while waiting for subscriber to synchronize data";
49+
4450
$node_publisher->safe_psql('postgres',
4551
q{INSERT INTO test1 VALUES (1, E'Mot\xc3\xb6rhead')});# hand-rolled UTF-8
4652

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp