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
Contributor

Description

One more case for test_peering_flush_primary_lost (from #131/#132): EC 8+2 with pg_minsize 9 and v2 on 8 parts, where the PG could otherwise activate without the old primary on its 7 other holders plus the 2 OSDs that never got v2. The test now also requires the PG to wait for the lost primary when the others hold fewer than pg_data_size parts (it accepted either outcome there). Test only, no code change.

Found: writing a unit reproduction of the lone-stable-part sequence for a wide scheme; not a new bug.

Tested: osd_test passes on master. The same sequence fails at assert(complete) on a tree without ac3f6f85.

Contributor Name

Yury Luneff (MIND Software LLC, https://mindsw.io)

CLA

### Description One more case for `test_peering_flush_primary_lost` (from #131/#132): EC 8+2 with pg_minsize 9 and v2 on 8 parts, where the PG could otherwise activate without the old primary on its 7 other holders plus the 2 OSDs that never got v2. The test now also requires the PG to wait for the lost primary when the others hold fewer than pg_data_size parts (it accepted either outcome there). Test only, no code change. Found: writing a unit reproduction of the lone-stable-part sequence for a wide scheme; not a new bug. Tested: osd_test passes on master. The same sequence fails at `assert(complete)` on a tree without ac3f6f85. ### Contributor Name Yury Luneff (MIND Software LLC, https://mindsw.io) ### CLA - [x] I accept Vitastor CLA agreement: https://git.yourcmc.ru/vitalif/vitastor/src/branch/master/CLA-en.md
koolkhel added 1 commit 2026-12-01 22:01:59 +03:00
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.
koolkhel added 1 commit 2026-12-02 01:11:49 +03:00
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.
koolkhel added 1 commit 2026-12-02 01:13:00 +03:00
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.
koolkhel changed title from osd: Test a lost peering flush primary on EC 8+2 and on 3+2 with pg_minsize 3 to osd: Test a lost peering flush primary on EC 8+2 2026-12-02 01:13:09 +03:00
This pull request has changes conflicting with the target branch.
  • src/test/osd_test.cpp
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u peering-flush-ec82-test:koolkhel-peering-flush-ec82-test
git checkout koolkhel-peering-flush-ec82-test
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: vitalif/vitastor#218
No description provided.