]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Avoid assertion on empty object read when reading multiple objects 68637/head
authorAlex Ainscow <aainscow@uk.ibm.com>
Mon, 27 Apr 2026 16:46:40 +0000 (17:46 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Wed, 6 May 2026 09:42:55 +0000 (10:42 +0100)
commit5994e2a7faa49d03a65c4a9c126b2b9a1d24c3da
tree99a65dbd1786e510e8d980a873807402f33c2323
parent0bb56bbda4eca831820df54d9616be5f52aab277
osd: Avoid assertion on empty object read when reading multiple objects

Tracker 75432 hits an assert which is attempting to protect the system
against hanging, due to generating a read request which sends no messages.

The assert fired because recovery was attempting to read multiple objects
in a single read request. One object did not require any further shard
reads in order to recover, while the other did.  The consequence is that
the assert fired on one of the objects.

The problem is simply that the assert is in the wrong place.

Fixes: https://tracker.ceph.com/issues/75432
Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
src/osd/ECCommon.cc
src/test/osd/TestECFailoverWithPeering.cc