forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0e16281
committed
Fix test race between primary XLOG_RUNNING_XACTS and standby logical slot.
Before the previous commit, the test could hang untilLOG_SNAPSHOT_INTERVAL_MS (15s), until checkpoint_timeout (300s), orindefinitely. An indefinite hang was awfully improbable. It entailedthe test reaching checkpoint_timeout before theDecodingContextFindStartpoint() of a CREATE SUBSCRIPTION, yet after thepreceding WAL record. Back-patch to v16, which introduced the test.Bertrand Drouvot, reported by Noah Misch.Discussion:https://postgr.es/m/20240211010227.a2.nmisch@google.com1 parent4791f87 commit0e16281
File tree
2 files changed
+34
-16
lines changed- src/test
- perl/PostgreSQL/Test
- recovery/t
2 files changed
+34
-16
lines changedLines changed: 32 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3181 | 3181 |
| |
3182 | 3182 |
| |
3183 | 3183 |
| |
| 3184 | + | |
| 3185 | + | |
| 3186 | + | |
| 3187 | + | |
| 3188 | + | |
| 3189 | + | |
| 3190 | + | |
| 3191 | + | |
| 3192 | + | |
| 3193 | + | |
| 3194 | + | |
| 3195 | + | |
| 3196 | + | |
| 3197 | + | |
| 3198 | + | |
| 3199 | + | |
| 3200 | + | |
| 3201 | + | |
| 3202 | + | |
| 3203 | + | |
| 3204 | + | |
| 3205 | + | |
| 3206 | + | |
| 3207 | + | |
| 3208 | + | |
| 3209 | + | |
| 3210 | + | |
| 3211 | + | |
| 3212 | + | |
| 3213 | + | |
3184 | 3214 |
| |
3185 | 3215 |
| |
3186 | 3216 |
| |
| |||
3206 | 3236 |
| |
3207 | 3237 |
| |
3208 | 3238 |
| |
3209 |
| - | |
3210 |
| - | |
3211 |
| - | |
3212 |
| - | |
3213 |
| - | |
3214 |
| - | |
3215 |
| - | |
3216 |
| - | |
3217 |
| - | |
3218 |
| - | |
3219 |
| - | |
3220 |
| - | |
3221 |
| - | |
| 3239 | + | |
3222 | 3240 |
| |
3223 |
| - | |
| 3241 | + | |
3224 | 3242 |
| |
3225 | 3243 |
| |
3226 | 3244 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
465 | 465 |
| |
466 | 466 |
| |
467 | 467 |
| |
468 |
| - | |
469 |
| - | |
| 468 | + | |
| 469 | + | |
470 | 470 |
| |
471 | 471 |
| |
472 | 472 |
| |
|
0 commit comments
Comments
(0)