interplane.Get Omega
Read in your language

synapse

A component of the AienOS ecosystem.

Brought by drakestapleton

branch main Branches Tags History

synapse / evidence / r1-raw-block-store / red-green / mutation-M1b.txt

20 lines · 958 bytes Raw Blame History
1mutation M1b: same mutation, flush-failure test
2test: blockdev_tests::r1_failed_device_flush_acknowledges_nothing
3diff --git a/crates/synapse-store/src/wal2.rs b/crates/synapse-store/src/wal2.rs
4index b163102..f00b681 100644
5--- a/crates/synapse-store/src/wal2.rs
6+++ b/crates/synapse-store/src/wal2.rs
7@@ -476,7 +476,7 @@ impl SegFile {
8 fn sync_data(&self) -> std::io::Result<()> {
9 match self {
10 SegFile::Fs(f) => f.sync_data(),
11- SegFile::Block { dev, .. } => dev.flush(),
12+ SegFile::Block { .. } => Ok(()),
13 }
14 }
15
16---
17test blockdev_tests::r1_failed_device_flush_acknowledges_nothing ... FAILED
18thread 'blockdev_tests::r1_failed_device_flush_acknowledges_nothing' (1697408) panicked at crates/synapse-store/src/blockdev_tests.rs:447:50:
19test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 72 filtered out; finished in 0.01s
20error: test failed, to rerun pass `-p synapse-store --lib`