A read through a snapshot chain still ran check_corrupted_chained() and
retried when a subop failed after its PG stopped. A copy removed by a
repeat delete that the stop cancelled answered -ENOENT, the copy was
marked corrupted with the stale object state, and the retry aborted the
OSD on assert(read_target != 0) in collect_bitmap_requests(), since the
object had no copy left. End such a read with -EPIPE, like a plain read.
Once the read finishes, the PG restarts peering and resets its state, so
the assert held even without the fix. The -EPIPE assert is what catches
a read that judged the copies.
A read whose PG stopped while a subop was in flight still judged the
copies by the object state when a subop failed. A copy that a repeat
delete had just removed answers -ENOENT, the delete itself was cancelled
by the stop before the state was updated, and no operation is queued on
the object any more, so the -ENOENT was taken for corruption: the object
was marked INCOMPLETE and the read failed with -EIO. Peering rebuilds the
object states anyway, so finish such a read with -EPIPE like any other
operation of a stopped PG; the client repeats it after peering.