From c758cdc567385400c557f2c2f565b79d2e4a7fd9 Mon Sep 17 00:00:00 2001 From: Yury Luneff Date: Mon, 23 Nov 2026 13:44:28 +0300 Subject: [PATCH] test_pg_chaos: Don't run deferred recovery checks on objects with an operation in flight flush_recover_pending() runs from settle() while client operations are in flight, so check_recovered() could read an object the model was still writing to. Such a read may legally return a per-block mix of the old and the new data, which no single world of the recorded versions explains, and the checker aborted although nothing was lost. Skip busy objects. They are checked again by a later settle or by the convergence loop after drain(). --- src/test/test_pg_chaos.cpp | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.47.3