Commit a0806f5
Cover read failure inside a frame's CRC span
testReadErrorMidFrameCrcSpanEndsRecoveryAtFrameStart covers the one
recovery path the suite left unexercised: a read failure partway
through a large frame's CRC span. Every earlier unreadable-region
test fails on a frame-header read, taking the scan loop's outer
break; this test makes the failure land on the second CRC chunk of a
3 MiB frame, driving the labeled break inside scanFile's incremental
CRC loop. Recovery must discard the partially checksummed frame
whole, keep the intact frame below it, and skip the torn-tail probe.
A mutation check confirms the test discriminates: dropping the
unreadable flag on that branch makes the torn-tail probe run against
the unprobeable region and misreport a ~4 MiB torn tail, failing
exactly this test and no other.
The multi-window test's javadoc claimed the small second frame is
verified out of a repositioned window; the window the large frame's
final CRC chunk loaded already covers it, and the javadoc now says
so.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 1cb4c65 commit a0806f5
1 file changed
Lines changed: 42 additions & 3 deletions
File tree
- core/src/test/java/io/questdb/client/test/cutlass/qwp/client/sf/cursor
Lines changed: 42 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
278 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
| |||
299 | 300 | | |
300 | 301 | | |
301 | 302 | | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
302 | 341 | | |
303 | 342 | | |
304 | 343 | | |
| |||
0 commit comments