test_pg_chaos: Check a recovered object only while nothing is in flight on it #210

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

1 Commits

Author SHA1 Message Date
6e35789812 test_pg_chaos: Check a recovered object only while nothing is in flight on it
flush_recover_pending() read an object as soon as the PG was active
again, even while a write to it was still in flight. A read racing a
write may return a mixture of the old and the new data when the store
writes the new version in place under it (store v1 flush, the new
store's compaction; see "Reads running parallel to flushes of the same
clean block may read a mixture of old and new data" in v1/read.cpp),
and check_recovered() then reported content no recorded version
explains. Leave such objects pending: the convergence loop checks them
after drain(), as it already does for repeated deletions.
2026-11-30 06:31:37 +03:00