Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/synapse/blob/main/evidence/r1-raw-block-store/red-green/mutation-M6.txt # synapse A component of the AienOS ecosystem. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `synapse / evidence / r1-raw-block-store / red-green / mutation-M6.txt` 17 lines ยท 1270 bytes Raw Blame History 1 mutation M6: rotation writes the header before zeroing (a valid header could then sit on stale bytes) 2 test: blockdev_tests::r1_power_cut_at_every_write_boundary_keeps_every_ack 3 @@ -416,8 +416,8 @@ 4 // Zero and flush before the header goes in: a valid header then always sits on a 5 // zeroed slot, so data under a valid header past the committed count can only 6 // be acknowledged batches (`BlockDevice::refuse_data_past_segment_count`). 7 - dev.zero_segment(id)?; 8 dev.write_segment_header(id)?; 9 + dev.zero_segment(id)?; 10 #[cfg(test)] 11 self.trace.push(SegEvent::Created(id)); 12 dev.flush()?; 13 --- 14 test blockdev_tests::r1_power_cut_at_every_write_boundary_keeps_every_ack ... FAILED 15 thread 'blockdev_tests::r1_power_cut_at_every_write_boundary_keeps_every_ack' (`2401803`) panicked at crates/synapse-store/src/blockdev_tests.rs:687:19: 16 op 32 prefix 0/128: truncating recovery refused with acks up to 8: SynapseError { code: CheckpointCorrupt, message: "segment slot 2 holds data past the committed segment count 1: the newest superblock copy is damaged and the older copy would drop acknowledged changes" } 17 test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 114 filtered out; finished in 3.36s