osd: Put the current OSD set into the PG history when a peering flush reports the epoch #217

Merged
vitalif merged 1 commits from koolkhel/vitastor:flush-history-cur-set into master 2026-12-02 01:36:19 +03:00

1 Commits

Author SHA1 Message Date
fa9af50082 osd: Put the current OSD set into the PG history when a peering flush reports the epoch
Since the peering flush reports a new epoch itself, to get the holders
of the versions it stabilizes into the history first, the first
degraded write of that epoch finds the epoch already reported and no
longer adds the current OSD set to the history. If the primary then
stabilizes its own part of that write and is lost before the others
stabilize theirs, the PG can activate without it and roll the other
parts back. The primary comes back with a lone stable part, and the
object stays incomplete.

Report the epoch from the flush with report_epoch(), as writes do, so
a degraded PG's current OSD set goes into the history with it. This is
reachable in EC pools whose pg_minsize equals the number of data
chunks, e.g. N+1 with the default pg_minsize.
2026-12-01 21:55:50 +03:00