aboutsummaryrefslogtreecommitdiff
path: root/contrib/jsonb_plpython
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2025-05-13 09:54:29 +0530
committerAmit Kapila <akapila@postgresql.org>2025-05-13 09:54:29 +0530
commit8ede692de512750ecb6930213e6d78ed90ef06d0 (patch)
treea08b29d8916b3ce53dfa20efc974b9977a57f250 /contrib/jsonb_plpython
parentdbf42b84ac7b4e1dfd1ac6e618e247100b6aa08b (diff)
downloadpostgresql-8ede692de512750ecb6930213e6d78ed90ef06d0.tar.gz
postgresql-8ede692de512750ecb6930213e6d78ed90ef06d0.zip
Fix the race condition in the test added by 7c99dc587.
After executing ALTER SUBSCRIPTION tap_sub SET PUBLICATION, we did not wait for the new walsender process to restart. As a result, an INSERT executed immediately after the ALTER could be decoded and skipped, considering it is not part of any subscribed publication. And, the old apply worker could also confirm the LSN of such an INSERT. This could cause the replication to resume from a point after the INSERT. In such cases, we miss the expected warning about the missing publication. To fix this, ensure the walsender has restarted before continuing after ALTER SUBSCRIPTION. Reported-by: Tom Lane as per CI Author: vignesh C <vignesh21@gmail.com> Reviewed-by: Xuneng Zhou <xunengzhou@gmail.com> Reviewed-by: Amit Kapila <amit.kapila16@gmail.com> Discussion: https://postgr.es/m/1230066.1745992333@sss.pgh.pa.us
Diffstat (limited to 'contrib/jsonb_plpython')
0 files changed, 0 insertions, 0 deletions