test_pg_chaos: Treat ops lost in a crash or takeover as OPTIONAL #159

Merged
vitalif merged 1 commits from koolkhel/vitastor:pg-chaos-submitted-delete into master 2026-11-26 16:07:55 +03:00

1 Commits

Author SHA1 Message Date
75c9bae5ae test_pg_chaos: Treat ops lost in a crash or takeover as OPTIONAL
A write or delete still in flight when the primary crashed or was taken
over never gets a reply: account() changed the state only of answered
operations and forget_inflight() dropped the rest, so the version stayed
V_SUBMITTED for good. Such an operation may have applied on any subset
of the set, which is what V_OPTIONAL means and what the do_crash() and
do_takeover() comments already assumed. The delete-pending branch of
world_check() takes only V_OPTIONAL, so a lost delete that did apply was
reported as a lost write.
2026-11-26 15:00:50 +03:00