forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitae4e072
Amit Kapila
Fix unstable test in 040_pg_createsubscriber.
The slot synchronization failed because the local slot's (created duringslot synchronization) catalog_xmin on standby is ahead of remote slot.This happens because the INSERT before slot synchronization results in thegeneration of a new xid that could be replicated to the standby. Nowbefore the xmin of the physical slot on the primary catches up viahot_standby_feedback, the test has created a logical slot that got someprior value of catalog_xmin.To fix this we could try to ensure that the physical slot's catalog_xminis caught up to latest value before creating a logical slot but we took asimpler path to move the INSERT after synchronizing the logical slot.Reported-by: Alexander Lakhin as per buildfarmDiagnosed-by: Amit Kapila, Hou Zhijie, Alexander LakhinAuthor: Hou ZhijieBackpatch-through: 17Discussion:https://postgr.es/m/bde6ac67-69cc-c104-5ab6-dd4f5deadf24@gmail.com1 parent068674f commitae4e072
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | 230 | | |
235 | 231 | | |
236 | 232 | | |
| |||
306 | 302 | | |
307 | 303 | | |
308 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
309 | 313 | | |
310 | 314 | | |
311 | 315 | | |
| |||
0 commit comments
Comments
(0)