diff options
| author | tv <tv@krebsco.de> | 2026-11-13 20:24:39 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-13 20:24:39 +0000 |
| commit | d1d081cf8e0e8bb5809c1c82bbdfec6bd7ad0285 (patch) | |
| tree | 2189f8e8e53876550d5383c25967c2266623210f /src/simtest | |
| parent | 5913c6cc383ade12a8edc01d0f47d9671fb53227 (diff) | |
simtest: hyparview's views settle within a reaffirm round
`active_views_settle_and_heal` waited 60 s for the views to settle, on
lossy links. A DISCONNECT lost leaves a link at one end until the next
reaffirm round (`REAFFIRM_EVERY`, 60 s): the wait timed out with one
member holding another that no longer held it. It waits twice that, as
the heal after it does.
Diffstat (limited to 'src/simtest')
| -rw-r--r-- | src/simtest/hyparview.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/simtest/hyparview.rs b/src/simtest/hyparview.rs index 5c5b735..8b95378 100644 --- a/src/simtest/hyparview.rs +++ b/src/simtest/hyparview.rs @@ -144,7 +144,17 @@ async fn active_views_settle_and_heal() { sim.wait_ready(&all, SOON).await; // By node ID, as the views hold them (`ids` are the names on the simulated net). let up: BTreeSet<String> = nodes.iter().map(|n| n.local_id().to_owned()).collect(); - wait_settled(&nodes, &ids, &up, "the active views settle", SOON, |_| true).await; + // Up to a reaffirm round (`REAFFIRM_EVERY`, 60 s) past the last change of a view: a + // DISCONNECT lost on these lossy links leaves the link at one end until then. + wait_settled( + &nodes, + &ids, + &up, + "the active views settle", + SOON * 2, + |_| true, + ) + .await; write(&nodes[0], "x", json!(1)).await; sim.wait_converged(&all, SOON).await; |
