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.