synapse
A component of the AienOS ecosystem.
Brought by drakestapleton
synapse / evidence / a1-binary-codec / red-green / red-migration-crash.txt
| 1 | # Red for the migration crash-window tests (review item 1), 2026-10-14 |
| 2 | Each break is applied to crates/synapse-store/src/lib.rs, the A1 tests are run, and the file is restored (cmp-checked). All five crash tests start from the main-written (b04ad31) v1 fixtures. |
| 3 | |
| 4 | ## Break A: a stale checkpoint.v1 beside checkpoint.v2 is always refused (condition forced true) |
| 5 | test a1_tests::a1_documented_layout_decodes_and_every_non_canonical_form_is_refused ... ok |
| 6 | test a1_tests::a1_crash_before_tombstone_recovers_wal_log ... FAILED |
| 7 | test a1_tests::a1_stale_checkpoint_v1_beside_checkpoint_v2_recovers_wal_log ... FAILED |
| 8 | test a1_tests::a1_v1_checkpoint_ahead_of_checkpoint_v2_is_refused ... ok |
| 9 | test a1_tests::a1_damaged_checkpoint_v2_is_refused ... ok |
| 10 | test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_log ... ok |
| 11 | test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_v2_log ... ok |
| 12 | test a1_tests::a1_crash_before_tombstone_recovers_wal_v2_log ... ok |
| 13 | thread 'a1_tests::a1_crash_before_tombstone_recovers_wal_log' (746842) panicked at crates/synapse-store/src/a1_tests.rs:935:29: |
| 14 | v1-wal-log BeforeTombstone: reopen refused: SynapseError { code: CheckpointCorrupt, message: "checkpoint.v1 is neither the tombstone nor older than checkpoint.v2" } |
| 15 | thread 'a1_tests::a1_stale_checkpoint_v1_beside_checkpoint_v2_recovers_wal_log' (746855) panicked at crates/synapse-store/src/a1_tests.rs:935:29: |
| 16 | v1-wal-log StaleV1Only: reopen refused: SynapseError { code: CheckpointCorrupt, message: "checkpoint.v1 is neither the tombstone nor older than checkpoint.v2" } |
| 17 | |
| 18 | ## Break B1: wal.log frames covered by checkpoint.v2 go through the codec order rule |
| 19 | test a1_tests::a1_documented_layout_decodes_and_every_non_canonical_form_is_refused ... ok |
| 20 | test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_log ... FAILED |
| 21 | test a1_tests::a1_crash_before_tombstone_recovers_wal_log ... FAILED |
| 22 | test a1_tests::a1_v1_checkpoint_ahead_of_checkpoint_v2_is_refused ... ok |
| 23 | test a1_tests::a1_damaged_checkpoint_v2_is_refused ... ok |
| 24 | test a1_tests::a1_stale_checkpoint_v1_beside_checkpoint_v2_recovers_wal_log ... ok |
| 25 | test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_v2_log ... ok |
| 26 | test a1_tests::a1_crash_before_tombstone_recovers_wal_v2_log ... ok |
| 27 | thread 'a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_log' (748463) panicked at crates/synapse-store/src/a1_tests.rs:935:29: |
| 28 | v1-wal-log BeforeCompaction: reopen refused: SynapseError { code: WalVersionUnsupported, message: "v1 JSON WAL record at wal:9 after binary v2 records" } |
| 29 | thread 'a1_tests::a1_crash_before_tombstone_recovers_wal_log' (748465) panicked at crates/synapse-store/src/a1_tests.rs:935:29: |
| 30 | v1-wal-log BeforeTombstone: reopen refused: SynapseError { code: WalVersionUnsupported, message: "v1 JSON WAL record at wal:9 after binary v2 records" } |
| 31 | |
| 32 | ## Break B2: wal.v2.log batches covered by checkpoint.v2 go through the codec order rule |
| 33 | test a1_tests::a1_documented_layout_decodes_and_every_non_canonical_form_is_refused ... ok |
| 34 | test a1_tests::a1_v1_checkpoint_ahead_of_checkpoint_v2_is_refused ... ok |
| 35 | test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_log ... ok |
| 36 | test a1_tests::a1_damaged_checkpoint_v2_is_refused ... ok |
| 37 | test a1_tests::a1_crash_before_tombstone_recovers_wal_log ... ok |
| 38 | test a1_tests::a1_stale_checkpoint_v1_beside_checkpoint_v2_recovers_wal_log ... ok |
| 39 | test a1_tests::a1_crash_before_tombstone_recovers_wal_v2_log ... FAILED |
| 40 | test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_v2_log ... FAILED |
| 41 | thread 'a1_tests::a1_crash_before_tombstone_recovers_wal_v2_log' (750182) panicked at crates/synapse-store/src/a1_tests.rs:935:29: |
| 42 | v1-wal-v2-log BeforeTombstone: reopen refused: SynapseError { code: WalVersionUnsupported, message: "v1 JSON WAL record at wal:1 after binary v2 records" } |
| 43 | thread 'a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_v2_log' (750180) panicked at crates/synapse-store/src/a1_tests.rs:935:29: |
| 44 | v1-wal-v2-log BeforeCompaction: reopen refused: SynapseError { code: WalVersionUnsupported, message: "v1 JSON WAL record at wal:1 after binary v2 records" } |
| 45 | |
| 46 | ## Break C: open does not replace checkpoint.v1 with the tombstone |
| 47 | test a1_tests::a1_documented_layout_decodes_and_every_non_canonical_form_is_refused ... ok |
| 48 | test a1_tests::a1_v1_checkpoint_ahead_of_checkpoint_v2_is_refused ... ok |
| 49 | test a1_tests::a1_stale_checkpoint_v1_beside_checkpoint_v2_recovers_wal_log ... FAILED |
| 50 | test a1_tests::a1_crash_before_tombstone_recovers_wal_log ... FAILED |
| 51 | test a1_tests::a1_damaged_checkpoint_v2_is_refused ... ok |
| 52 | test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_log ... ok |
| 53 | test a1_tests::a1_crash_before_tombstone_recovers_wal_v2_log ... FAILED |
| 54 | test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_v2_log ... ok |
| 55 | thread 'a1_tests::a1_stale_checkpoint_v1_beside_checkpoint_v2_recovers_wal_log' (752294) panicked at crates/synapse-store/src/a1_tests.rs:940:5: |
| 56 | assertion `left == right` failed: v1-wal-log StaleV1Only: tombstone written on open |
| 57 | thread 'a1_tests::a1_crash_before_tombstone_recovers_wal_log' (752281) panicked at crates/synapse-store/src/a1_tests.rs:940:5: |
| 58 | assertion `left == right` failed: v1-wal-log BeforeTombstone: tombstone written on open |
| 59 | thread 'a1_tests::a1_crash_before_tombstone_recovers_wal_v2_log' (752282) panicked at crates/synapse-store/src/a1_tests.rs:941:45: |
| 60 | |
| 61 | ## Break D: a v1 checkpoint ahead of checkpoint.v2 is not detected |
| 62 | test a1_tests::a1_documented_layout_decodes_and_every_non_canonical_form_is_refused ... ok |
| 63 | test a1_tests::a1_v1_checkpoint_ahead_of_checkpoint_v2_is_refused ... FAILED |
| 64 | test a1_tests::a1_damaged_checkpoint_v2_is_refused ... ok |
| 65 | test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_log ... ok |
| 66 | test a1_tests::a1_stale_checkpoint_v1_beside_checkpoint_v2_recovers_wal_log ... ok |
| 67 | test a1_tests::a1_crash_before_tombstone_recovers_wal_log ... ok |
| 68 | test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_v2_log ... ok |
| 69 | test a1_tests::a1_crash_before_tombstone_recovers_wal_v2_log ... ok |
| 70 | thread 'a1_tests::a1_v1_checkpoint_ahead_of_checkpoint_v2_is_refused' (754100) panicked at crates/synapse-store/src/a1_tests.rs:1044:5: |
| 71 | assertion `left == right` failed |
| 72 | |
| 73 | == Break E: checkpoint.v2 does not mark the store binary (lib.rs recover: binary_seen not set after loading checkpoint.v2) |
| 74 | test a1_tests::a1_v1_records_appended_in_the_crash_window_are_refused ... FAILED |
| 75 | left: None |
| 76 | right: Some(WalVersionUnsupported) |
| 77 | test result: FAILED. 20 passed; 1 failed; 0 ignored; 0 measured; 21 filtered out; finished in 0.51s |
| 78 | lib.rs restored (cmp identical to the good copy). |