diff options
| author | tv <tv@krebsco.de> | 2026-11-18 20:39:21 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-18 21:42:27 +0100 |
| commit | c0bb757df50fe4aa025ba2e6ac021e179291c78b (patch) | |
| tree | b1fad8db18d3cd8376237662e1e3ca3d1c7c6d19 /src/simtest/mod.rs | |
| parent | 43a6de3dc17123cbe35ff99fac283419fef3cf63 (diff) | |
simtest: a failed simulation's dump says where a store stopped
Diffstat (limited to 'src/simtest/mod.rs')
| -rw-r--r-- | src/simtest/mod.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/simtest/mod.rs b/src/simtest/mod.rs index 7764f1c..c96f189 100644 --- a/src/simtest/mod.rs +++ b/src/simtest/mod.rs @@ -492,8 +492,9 @@ pub(crate) async fn read(node: &AppState, at: &str) -> Option<JsonValue> { } /// What a node's store holds, for a failed simulation's dump: its checkpoint and current -/// version, what it took and refused (and why), and the proposals on the current version -/// with the parties voting on them, and whether they pass there. +/// version, what it took and refused (and why), where it stopped (and why, and how many +/// events it holds back), and the proposals on the current version with the parties +/// voting on them, and whether they pass there. #[cfg(feature = "federation")] fn describe_store( store: &crate::federation::store::memory::Store<crate::federation::fold::Federation>, @@ -512,6 +513,13 @@ fn describe_store( store.taken().len(), store.refused().count() ); + if let Some((id, why, held)) = store.stopped() { + let _ = writeln!( + out, + " stopped at {} ({held} held back): {why}", + short(id) + ); + } for (id, refusal) in store.refused() { let _ = writeln!(out, " refused {}: {refusal:?}", short(id)); } |
