osd: Test a lost peering flush primary on EC 8+2 #218

Open
koolkhel wants to merge 3 commits from koolkhel/vitastor:peering-flush-ec82-test into master

3 Commits

Author SHA1 Message Date
b4bb591111 osd: Drop the EC 3+2 pg_minsize 3 case of the lost flush primary test
pg_minsize only gates pg_cursize, which stays at 4 when only OSD 1 is lost, so the case repeated the pg_minsize 4 one.
2026-12-02 01:12:56 +03:00
1ead7bcb06 osd: Require the PG to wait for a lost flush primary when the rest hold fewer than pg_data_size parts
With v2 on exactly pg_data_size parts, the test accepted either outcome for activation without OSD 1. Assert that the PG waits for it, as the history of the holders requires.
2026-12-02 01:11:45 +03:00
76872b0aa4 osd: Test a lost peering flush primary on EC 8+2 and on 3+2 with pg_minsize 3
Cover a wide scheme, EC 8+2 with pg_minsize 9, where the PG could
activate without the old primary on its 7 other holders plus the 2
OSDs that never got the version, and pg_minsize equal to the number of
data chunks on 3+2. The same sequences fail at assert(complete) on a
tree without ac3f6f85.
2026-12-01 22:01:56 +03:00