Commit 186ae10
Defer catch-up commit; fix stale delta comments
Three delta symbol-dict cleanups (a fourth reported item, a dead
CursorSendEngine.isMemoryMode(), was already removed earlier on this
branch, so nothing to do there):
- sendCatchUpChunk now sets FLAG_DEFER_COMMIT on the catch-up frame. It
carries dictionary entries but no rows, so it must never trigger a
server-side commit. Today it is always the first frame on a fresh
(empty-transaction) connection, so committing nothing is a no-op -- but
that invariant is load-bearing and was unasserted. Deferring the empty
commit removes the dependency, so a future mid-stream catch-up cannot
prematurely commit an in-flight deferred transaction. The dictionary
delta still registers, as any deferred data frame's does.
- flushPendingRows' comment claimed delta mode is "memory-mode only";
file-mode store-and-forward ships monotonic deltas too once the
persisted dictionary opened. Corrected.
- The deltaDictEnabled field comment implied delta mode only applies to
recovered / orphan-drained disk slots; it applies to fresh disk slots
too. Clarified that recovery additionally seeds the mirror.
testReconnectCatchUpRebuildsDictionary now asserts the catch-up frame
carries FLAG_DEFER_COMMIT; it fails without the flag.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 0b4ab3f commit 186ae10
3 files changed
Lines changed: 26 additions & 4 deletions
File tree
- core/src
- main/java/io/questdb/client/cutlass/qwp/client
- sf/cursor
- test/java/io/questdb/client/test/cutlass/qwp/client
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3455 | 3455 | | |
3456 | 3456 | | |
3457 | 3457 | | |
3458 | | - | |
| 3458 | + | |
| 3459 | + | |
3459 | 3460 | | |
3460 | 3461 | | |
3461 | 3462 | | |
| |||
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
191 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
192 | 195 | | |
193 | 196 | | |
194 | 197 | | |
| |||
2293 | 2296 | | |
2294 | 2297 | | |
2295 | 2298 | | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
| 2306 | + | |
| 2307 | + | |
2296 | 2308 | | |
2297 | | - | |
| 2309 | + | |
| 2310 | + | |
2298 | 2311 | | |
2299 | 2312 | | |
2300 | 2313 | | |
| |||
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
| |||
326 | 329 | | |
327 | 330 | | |
328 | 331 | | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
329 | 335 | | |
330 | 336 | | |
331 | 337 | | |
| |||
352 | 358 | | |
353 | 359 | | |
354 | 360 | | |
| 361 | + | |
| 362 | + | |
355 | 363 | | |
356 | 364 | | |
357 | 365 | | |
| |||
0 commit comments