Commit 51ddcea
fix(restore): improve diagnostics and error handling for GCS restore failures
- Add detailed restore plan logging showing each file's level, TXID range, and size
- Fix compaction error capture (was being swallowed due to variable scoping)
- Improve decode error message to include first file info for debugging EOF errors
- Add warning when restore plan starts from non-TXID-1 (seeded replica detection)
- Add GCS-specific fail-fast for truncated files (< header size)
- Add debug logging when opening LTX files from GCS
These changes help diagnose issue #858 where GCS restores fail with
"decode database: decode header: EOF" by providing better visibility
into the restore plan and catching truncated files early.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent fc6a020 commit 51ddcea
2 files changed
+52
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
191 | 210 | | |
192 | | - | |
| 211 | + | |
193 | 212 | | |
194 | 213 | | |
195 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
428 | 438 | | |
429 | 439 | | |
430 | 440 | | |
| |||
441 | 451 | | |
442 | 452 | | |
443 | 453 | | |
444 | | - | |
| 454 | + | |
445 | 455 | | |
446 | 456 | | |
447 | 457 | | |
| |||
479 | 489 | | |
480 | 490 | | |
481 | 491 | | |
| 492 | + | |
482 | 493 | | |
483 | 494 | | |
484 | 495 | | |
485 | 496 | | |
486 | | - | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
487 | 502 | | |
488 | 503 | | |
489 | 504 | | |
490 | 505 | | |
491 | | - | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
492 | 510 | | |
493 | 511 | | |
494 | 512 | | |
| |||
574 | 592 | | |
575 | 593 | | |
576 | 594 | | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
577 | 606 | | |
578 | 607 | | |
0 commit comments