- Notifications
You must be signed in to change notification settings - Fork5k
Commitae395f0

Amit Kapila
Fix the testcase introduced in commit81d20fb.
The failed test was syncing failover replication slot to standby to testthat we remove such slots after the standby is converted to subscriber bypg_createsubscriber.In one of the buildfarm members, the sync of the slot failed because theLSN on the standby was before the syncslot's LSN. We need to wait forstandby to catch up before trying to sync the slot withpg_sync_replication_slots().The other buildfarm failed because autovacuum generated a xid which isreplicated to the standby at some random point making slots at primarylag behind standby during slot sync.Both these failures wouldn't have occurred if we had used built-inslotsync worker as it would have waited for the standby to sync withprimary but for this test, it is sufficient to usepg_sync_replication_slots().Reported-by: Alexander Lakhin as per buildfarmAuthor: Kuroda HayatoReviewed-by: Amit KapilaBackpatch-through: 17Discussion:https://postgr.es/m/0dffca12-bf17-4a7a-334d-225569de5e6e@gmail.comDiscussion:https://postgr.es/m/OSBPR01MB25528300C71FDD83EA1DCA12F5DD2@OSBPR01MB2552.jpnprd01.prod.outlook.com1 parent9fd0252 commitae395f0
1 file changed
+7
-0
lines changedLines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
119 | 123 |
| |
120 | 124 |
| |
121 | 125 |
| |
| |||
293 | 297 |
| |
294 | 298 |
| |
295 | 299 |
| |
| 300 | + | |
| 301 | + | |
| 302 | + | |
296 | 303 |
| |
297 | 304 |
| |
298 | 305 |
| |
|
0 commit comments
Comments
(0)