- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit8ede692

Amit Kapila
Fix the race condition in the test added by7c99dc5.
After executing ALTER SUBSCRIPTION tap_sub SET PUBLICATION, we did notwait for the new walsender process to restart. As a result, an INSERTexecuted immediately after the ALTER could be decoded and skipped,considering it is not part of any subscribed publication. And, the oldapply worker could also confirm the LSN of such an INSERT. This couldcause the replication to resume from a point after the INSERT. In suchcases, we miss the expected warning about the missing publication.To fix this, ensure the walsender has restarted before continuing afterALTER SUBSCRIPTION.Reported-by: Tom Lane as per CIAuthor: 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.us1 parentdbf42b8 commit8ede692
1 file changed
+11
-0
lines changedLines changed: 11 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
91 | 91 |
| |
92 | 92 |
| |
93 | 93 |
| |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
94 | 98 |
| |
95 | 99 |
| |
96 | 100 |
| |
97 | 101 |
| |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
98 | 109 |
| |
99 | 110 |
| |
100 | 111 |
| |
|
0 commit comments
Comments
(0)