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

Commit1f50918

Browse files
author
Amit Kapila
committed
Fix intermetent test failure in 028_row_filter.pl.
The test was not waiting for the subscriber's data synchronization tohappen after refreshing the publication on the subscriber side. This leadssubscriber's apply worker to skip applying the changes on thecorresponding relation which results in a test failure.Reported-by: Hou Zhijie, as per buildfarmAuthor: Hou ZhijieReviewed-by: Masahiko Sawada, Amit KapilaDiscussion:https://postgr.es/m/OS0PR01MB5716A69496A8E2F2E155DB8D94B59@OS0PR01MB5716.jpnprd01.prod.outlook.com
1 parent1ce3451 commit1f50918

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎src/test/subscription/t/028_row_filter.pl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,11 @@
620620
"TRUNCATE TABLE tab_rowfilter_partitioned");
621621
$node_subscriber->safe_psql('postgres',
622622
"ALTER SUBSCRIPTION tap_sub REFRESH PUBLICATION WITH (copy_data = true)");
623+
624+
# wait for table synchronization to finish
625+
$node_subscriber->poll_query_until('postgres',$synced_query)
626+
ordie"Timed out while waiting for subscriber to synchronize data";
627+
623628
$node_publisher->safe_psql('postgres',
624629
"INSERT INTO tab_rowfilter_partitioned (a, b) VALUES(4000, 400),(4001, 401),(4002, 402)"
625630
);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp