diff --git a/src/test/test_pg_chaos.cpp b/src/test/test_pg_chaos.cpp index ae429929..19395a78 100644 --- a/src/test/test_pg_chaos.cpp +++ b/src/test/test_pg_chaos.cpp @@ -3891,6 +3891,13 @@ void chaos_t::flush_recover_pending() if (!pg_active()) return; int obj = *it; + // A read racing the model's own in-flight write may legally show both; + // the object is checked again once the write completes + if (busy[obj]) + { + ++it; + continue; + } if (check_recovered(obj, "an outage")) it = recover_pending.erase(it); else