test_pg_chaos: Don't run deferred recovery checks on objects with an operation in flight #163

Open
koolkhel wants to merge 1 commits from koolkhel/vitastor:chaos-recover-busy into master

View File

@@ -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