interplane.Get Omega
Read in your language

synapse

A component of the AienOS ecosystem.

Brought by drakestapleton

branch main Branches Tags History

synapse / evidence / a1-binary-codec / red-green / red-migration-crash.txt

78 lines · 6634 bytes Raw Blame History
1# Red for the migration crash-window tests (review item 1), 2026-10-14
2Each 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)
5test a1_tests::a1_documented_layout_decodes_and_every_non_canonical_form_is_refused ... ok
6test a1_tests::a1_crash_before_tombstone_recovers_wal_log ... FAILED
7test a1_tests::a1_stale_checkpoint_v1_beside_checkpoint_v2_recovers_wal_log ... FAILED
8test a1_tests::a1_v1_checkpoint_ahead_of_checkpoint_v2_is_refused ... ok
9test a1_tests::a1_damaged_checkpoint_v2_is_refused ... ok
10test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_log ... ok
11test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_v2_log ... ok
12test a1_tests::a1_crash_before_tombstone_recovers_wal_v2_log ... ok
13thread 'a1_tests::a1_crash_before_tombstone_recovers_wal_log' (746842) panicked at crates/synapse-store/src/a1_tests.rs:935:29:
14v1-wal-log BeforeTombstone: reopen refused: SynapseError { code: CheckpointCorrupt, message: "checkpoint.v1 is neither the tombstone nor older than checkpoint.v2" }
15thread 'a1_tests::a1_stale_checkpoint_v1_beside_checkpoint_v2_recovers_wal_log' (746855) panicked at crates/synapse-store/src/a1_tests.rs:935:29:
16v1-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
19test a1_tests::a1_documented_layout_decodes_and_every_non_canonical_form_is_refused ... ok
20test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_log ... FAILED
21test a1_tests::a1_crash_before_tombstone_recovers_wal_log ... FAILED
22test a1_tests::a1_v1_checkpoint_ahead_of_checkpoint_v2_is_refused ... ok
23test a1_tests::a1_damaged_checkpoint_v2_is_refused ... ok
24test a1_tests::a1_stale_checkpoint_v1_beside_checkpoint_v2_recovers_wal_log ... ok
25test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_v2_log ... ok
26test a1_tests::a1_crash_before_tombstone_recovers_wal_v2_log ... ok
27thread 'a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_log' (748463) panicked at crates/synapse-store/src/a1_tests.rs:935:29:
28v1-wal-log BeforeCompaction: reopen refused: SynapseError { code: WalVersionUnsupported, message: "v1 JSON WAL record at wal:9 after binary v2 records" }
29thread 'a1_tests::a1_crash_before_tombstone_recovers_wal_log' (748465) panicked at crates/synapse-store/src/a1_tests.rs:935:29:
30v1-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
33test a1_tests::a1_documented_layout_decodes_and_every_non_canonical_form_is_refused ... ok
34test a1_tests::a1_v1_checkpoint_ahead_of_checkpoint_v2_is_refused ... ok
35test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_log ... ok
36test a1_tests::a1_damaged_checkpoint_v2_is_refused ... ok
37test a1_tests::a1_crash_before_tombstone_recovers_wal_log ... ok
38test a1_tests::a1_stale_checkpoint_v1_beside_checkpoint_v2_recovers_wal_log ... ok
39test a1_tests::a1_crash_before_tombstone_recovers_wal_v2_log ... FAILED
40test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_v2_log ... FAILED
41thread 'a1_tests::a1_crash_before_tombstone_recovers_wal_v2_log' (750182) panicked at crates/synapse-store/src/a1_tests.rs:935:29:
42v1-wal-v2-log BeforeTombstone: reopen refused: SynapseError { code: WalVersionUnsupported, message: "v1 JSON WAL record at wal:1 after binary v2 records" }
43thread '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:
44v1-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
47test a1_tests::a1_documented_layout_decodes_and_every_non_canonical_form_is_refused ... ok
48test a1_tests::a1_v1_checkpoint_ahead_of_checkpoint_v2_is_refused ... ok
49test a1_tests::a1_stale_checkpoint_v1_beside_checkpoint_v2_recovers_wal_log ... FAILED
50test a1_tests::a1_crash_before_tombstone_recovers_wal_log ... FAILED
51test a1_tests::a1_damaged_checkpoint_v2_is_refused ... ok
52test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_log ... ok
53test a1_tests::a1_crash_before_tombstone_recovers_wal_v2_log ... FAILED
54test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_v2_log ... ok
55thread 'a1_tests::a1_stale_checkpoint_v1_beside_checkpoint_v2_recovers_wal_log' (752294) panicked at crates/synapse-store/src/a1_tests.rs:940:5:
56assertion `left == right` failed: v1-wal-log StaleV1Only: tombstone written on open
57thread 'a1_tests::a1_crash_before_tombstone_recovers_wal_log' (752281) panicked at crates/synapse-store/src/a1_tests.rs:940:5:
58assertion `left == right` failed: v1-wal-log BeforeTombstone: tombstone written on open
59thread '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
62test a1_tests::a1_documented_layout_decodes_and_every_non_canonical_form_is_refused ... ok
63test a1_tests::a1_v1_checkpoint_ahead_of_checkpoint_v2_is_refused ... FAILED
64test a1_tests::a1_damaged_checkpoint_v2_is_refused ... ok
65test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_log ... ok
66test a1_tests::a1_stale_checkpoint_v1_beside_checkpoint_v2_recovers_wal_log ... ok
67test a1_tests::a1_crash_before_tombstone_recovers_wal_log ... ok
68test a1_tests::a1_covered_json_frames_then_binary_frames_recover_wal_v2_log ... ok
69test a1_tests::a1_crash_before_tombstone_recovers_wal_v2_log ... ok
70thread 'a1_tests::a1_v1_checkpoint_ahead_of_checkpoint_v2_is_refused' (754100) panicked at crates/synapse-store/src/a1_tests.rs:1044:5:
71assertion `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)
74test a1_tests::a1_v1_records_appended_in_the_crash_window_are_refused ... FAILED
75 left: None
76 right: Some(WalVersionUnsupported)
77test result: FAILED. 20 passed; 1 failed; 0 ignored; 0 measured; 21 filtered out; finished in 0.51s
78lib.rs restored (cmp identical to the good copy).