Commit 79ee1f8
committed
Fix fail-closed handling for corrupt ledger and discovery errors
Bug 1 (b691b777): Corrupt ledger routes off JVM backend
- jvm_shape: Changed from .ok()? to proper match that fail-closes on
load_state error, continuing to detect shape even with corrupt ledger
- vendor_maven_jvm: Changed from silently skipping inherit_peer_records
on error to failing with vendor_ledger_corrupt error message
Bug 2 (30f7f45e): VEX misses live JVM wiring
- maven_reactor::wired: Changed from .is_ok_and() to match that returns
true (fail-closed) when Reactor::discover fails with unsupported layout
- entry_wired: Check for escaped paths first and return true (fail-closed)
before checking wiring, matching revert's refusal behavior
All changes implement fail-closed semantics: errors are treated as
'still wired' rather than 'not wired', preventing silent failures and
incorrect GC of live vendored entries.1 parent e3695a2 commit 79ee1f8
3 files changed
Lines changed: 40 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
622 | 627 | | |
623 | | - | |
| 628 | + | |
624 | 629 | | |
625 | 630 | | |
626 | 631 | | |
627 | | - | |
628 | | - | |
| 632 | + | |
629 | 633 | | |
630 | 634 | | |
631 | 635 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | | - | |
| 355 | + | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | | - | |
360 | | - | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
361 | 366 | | |
362 | 367 | | |
363 | 368 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
716 | 716 | | |
717 | 717 | | |
718 | 718 | | |
719 | | - | |
720 | | - | |
721 | | - | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
722 | 730 | | |
723 | 731 | | |
724 | 732 | | |
| |||
914 | 922 | | |
915 | 923 | | |
916 | 924 | | |
917 | | - | |
918 | | - | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
919 | 938 | | |
920 | 939 | | |
921 | 940 | | |
| |||
0 commit comments