osd_test: Answer etcd calls one by one in test_peering_flush_same_epoch_repeer #222

Open
koolkhel wants to merge 1 commits from koolkhel/vitastor:same-epoch-repeer-test-uaf into master

1 Commits

Author SHA1 Message Date
f4352b63d3 osd_test: Answer etcd calls one by one in test_peering_flush_same_epoch_repeer
The test unpaused the etcd mock, which then answers a txn and its watch
inside etcd_txn(). It passes only because the stopping PG's nested state
report fails its compare and is retried from a timer. If that report
succeeds, its callback erases the PG and stop_pg() goes on with the freed
PG (a heap-use-after-free under ASan). Keep the mock paused and answer the
queued calls one by one from the test, as a real etcd client does from
the event loop.
2026-12-02 14:04:49 +03:00