synapse
A component of the AienOS ecosystem.
Brought by drakestapleton
synapse / evidence / r1-raw-block-store / red-green / mutation-M2.txt
| 1 | mutation M2: mount ignores the metadata region digest |
| 2 | note: on the first run this mutation survived (the test damaged a length byte, so the region failed to decode before the digest mattered); the test now damages a content byte and the mutation is caught (this file is the rerun). |
| 3 | test: blockdev_tests::r1_superblock_falls_back_to_the_older_copy_when_the_newest_is_damaged |
| 4 | diff --git a/crates/synapse-store/src/blockdev.rs b/crates/synapse-store/src/blockdev.rs |
| 5 | index 05850d9..cb0f18b 100644 |
| 6 | --- a/crates/synapse-store/src/blockdev.rs |
| 7 | +++ b/crates/synapse-store/src/blockdev.rs |
| 8 | @@ -684,7 +684,7 @@ impl BlockDevice { |
| 9 | let mut meta = vec![0u8; sb.meta_len as usize]; |
| 10 | io.read_at(&mut meta, sb.geo.meta_offset[sb.meta_slot as usize]) |
| 11 | .map_err(io_err)?; |
| 12 | - if meta_digest(&meta) != sb.meta_sha256 { |
| 13 | + if false && meta_digest(&meta) != sb.meta_sha256 { |
| 14 | continue; |
| 15 | } |
| 16 | let Some(names) = decode_meta(&meta) else { |
| 17 | --- |
| 18 | test blockdev_tests::r1_superblock_falls_back_to_the_older_copy_when_the_newest_is_damaged ... FAILED |
| 19 | thread 'blockdev_tests::r1_superblock_falls_back_to_the_older_copy_when_the_newest_is_damaged' (1718698) panicked at crates/synapse-store/src/blockdev_tests.rs:399:5: |
| 20 | test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 72 filtered out; finished in 0.02s |
| 21 | error: test failed, to rerun pass `-p synapse-store --lib` |