test_pg_chaos: Add store v1 configurations behind --v1 #211

Open
koolkhel wants to merge 1 commits from koolkhel/vitastor:pg-chaos-store-v1 into master
Contributor

Description

test_pg_chaos always runs the OSDs on the new store (meta_format 3), so the store v1 OSD path gets no chaos coverage. This adds 4 store v1 configurations (meta_format 2, immediate_commit=all): replicated with csum_block none/4096 and EC 2+2 with csum_block none/32768. The OSD store factory creates v1::blockstore_impl_t for them; bs stays NULL, which dump_diagnostics() already allows.

Store v1 has no tombstones (supports_tombstones() is false), so the primary disables them for the PG (osd_peering.cpp:373) and uses legacy deletes. The v1 configurations set peer_tombstones = false so the fake peers and the model match that. With peer_tombstones = true almost every v1 seed fails on the model's delete expectations, not on the OSD.

The configurations are appended after the existing ones and are selected only with --v1 (it combines with --ec/--replicated; --config 10..13 also reaches them). They don't add to the default fixed seed range (still 1-20 plus 80 random seeds), and without --v1 the seed-to-configuration mapping is unchanged, so known seeds keep their configurations. docs/tests/pg-chaos.{en,ru}.md list the new configurations.

Related: #210 (recovered-object check vs. in-place writes) touches the same checker; this PR does not depend on it.

Tested on master 913f70c2: --v1 with seeds 1-28 plus 72 random ones, and --v1 --seeds 2000000-2000299, all pass. The v1 runs really use store v1: the trace has "Reading blockstore journal" / "Journal entries loaded" at each OSD start (57 lines), the new-store trace has none.

Contributor Name

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

CLA

### Description test_pg_chaos always runs the OSDs on the new store (meta_format 3), so the store v1 OSD path gets no chaos coverage. This adds 4 store v1 configurations (meta_format 2, immediate_commit=all): replicated with csum_block none/4096 and EC 2+2 with csum_block none/32768. The OSD store factory creates `v1::blockstore_impl_t` for them; `bs` stays NULL, which `dump_diagnostics()` already allows. Store v1 has no tombstones (`supports_tombstones()` is false), so the primary disables them for the PG (osd_peering.cpp:373) and uses legacy deletes. The v1 configurations set `peer_tombstones = false` so the fake peers and the model match that. With `peer_tombstones = true` almost every v1 seed fails on the model's delete expectations, not on the OSD. The configurations are appended after the existing ones and are selected only with `--v1` (it combines with `--ec`/`--replicated`; `--config 10..13` also reaches them). They don't add to the default fixed seed range (still 1-20 plus 80 random seeds), and without `--v1` the seed-to-configuration mapping is unchanged, so known seeds keep their configurations. docs/tests/pg-chaos.{en,ru}.md list the new configurations. Related: #210 (recovered-object check vs. in-place writes) touches the same checker; this PR does not depend on it. Tested on master 913f70c2: `--v1` with seeds 1-28 plus 72 random ones, and `--v1 --seeds 2000000-2000299`, all pass. The v1 runs really use store v1: the trace has "Reading blockstore journal" / "Journal entries loaded" at each OSD start (57 lines), the new-store trace has none. ### 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-11-30 10:51:35 +03:00
The chaos test always ran the new store (meta_format 3), so the store
v1 path was not covered. Add 4 configurations that run the OSDs on store
v1 (immediate_commit=all): replicated and EC 2+2, each without checksums
and with checksums (4K replicated, 32K EC).

Store v1 has no tombstones, so the primary falls back to legacy deletes
(osd_peering.cpp); the v1 configurations set peer_tombstones=false to
match. They are appended and selected only with --v1, so the existing
seeds keep their configurations.
koolkhel force-pushed pg-chaos-store-v1 from d1c23cced7 to 49e5bd8b6a 2026-11-30 10:53:15 +03:00 Compare
koolkhel force-pushed pg-chaos-store-v1 from 49e5bd8b6a to 49d232e466 2026-11-30 17:43:44 +03:00 Compare
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u pg-chaos-store-v1:koolkhel-pg-chaos-store-v1
git checkout koolkhel-pg-chaos-store-v1
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#211
No description provided.