Commit 75d89b8
Preserve cap-gap episode; minor test/style nits
A cluster of small review follow-ups; only the first changes behavior.
- The orphan-tail-retire re-anchor caught a CatchUpSendException and
passed fail(e.getCause()), unwrapping the cap-gap marker so
connectLoop's isCatchUpCapGap reset the orphan settle episode instead
of preserving it. Route unwrap-aware: fail(isCatchUpCapGap(e) ? e :
e.getCause()) keeps the attempt count and dwell anchor across the
re-anchor recycle for a genuine cap gap, and unwraps to the raw cause
otherwise, exactly as a normal send failure does. This only ever errs
safe today -- more retries before an orphan drainer quarantines -- but
the wrapper exists precisely to carry that signal.
- Drop @testonly from BackgroundDrainer.connectWithDurableAckRetry:
run() calls it in production, so the annotation was inaccurate.
- Rename CatchUpSendException.capGap to isCapGap (boolean naming).
- Restore the CursorWebSocketSendLoop final-field group and a
QwpWebSocketSender import to alphabetical order.
- DeltaDictCatchUpTest: fix a comment naming a test that does not exist.
- DeltaDictRecoveryTest: delete the never-instantiated CountingHandler
and the orphaned javadoc stacked above FullDiskDictFacade.
- CursorSendEngineTest: rename the legacy-guard test to describe what it
asserts (the guards force an FSN gap; current recovery adopts the v2
slot) -- it never drives a legacy reader to throw.
- PoisonFrameTest: the two catch-up-only "does not strike" tests now
assert poisonStrikes() == 0 explicitly instead of relying only on
checkError() not throwing.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 0a9c3d6 commit 75d89b8
7 files changed
Lines changed: 18 additions & 30 deletions
File tree
- core/src
- main/java/io/questdb/client/cutlass/qwp/client
- sf/cursor
- test/java/io/questdb/client/test/cutlass/qwp/client
- sf/cursor
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
269 | 268 | | |
270 | 269 | | |
271 | 270 | | |
| |||
Lines changed: 11 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
232 | | - | |
233 | 232 | | |
234 | 233 | | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
1548 | 1548 | | |
1549 | 1549 | | |
1550 | 1550 | | |
1551 | | - | |
| 1551 | + | |
1552 | 1552 | | |
1553 | 1553 | | |
1554 | 1554 | | |
| |||
3103 | 3103 | | |
3104 | 3104 | | |
3105 | 3105 | | |
3106 | | - | |
| 3106 | + | |
| 3107 | + | |
| 3108 | + | |
| 3109 | + | |
| 3110 | + | |
| 3111 | + | |
3107 | 3112 | | |
3108 | 3113 | | |
3109 | 3114 | | |
| |||
3325 | 3330 | | |
3326 | 3331 | | |
3327 | 3332 | | |
3328 | | - | |
| 3333 | + | |
3329 | 3334 | | |
3330 | 3335 | | |
3331 | 3336 | | |
3332 | 3337 | | |
3333 | 3338 | | |
3334 | | - | |
| 3339 | + | |
3335 | 3340 | | |
3336 | | - | |
| 3341 | + | |
3337 | 3342 | | |
3338 | 3343 | | |
3339 | 3344 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
| 167 | + | |
168 | 168 | | |
169 | 169 | | |
170 | 170 | | |
| |||
Lines changed: 0 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1636 | 1636 | | |
1637 | 1637 | | |
1638 | 1638 | | |
1639 | | - | |
1640 | | - | |
1641 | | - | |
1642 | | - | |
1643 | | - | |
1644 | | - | |
1645 | | - | |
1646 | | - | |
1647 | | - | |
1648 | | - | |
1649 | | - | |
1650 | | - | |
1651 | | - | |
1652 | | - | |
1653 | | - | |
1654 | | - | |
1655 | | - | |
1656 | | - | |
1657 | | - | |
1658 | | - | |
1659 | 1639 | | |
1660 | 1640 | | |
1661 | 1641 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
356 | 356 | | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
| 359 | + | |
360 | 360 | | |
361 | 361 | | |
362 | 362 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
273 | 275 | | |
274 | 276 | | |
275 | 277 | | |
| |||
306 | 308 | | |
307 | 309 | | |
308 | 310 | | |
| 311 | + | |
| 312 | + | |
309 | 313 | | |
310 | 314 | | |
311 | 315 | | |
| |||
0 commit comments