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.
Conflicts:
src/test/osd/TestECFailoverWithPeering.cc
Unit tests not included as they rely on a new unit test framework in main.
Fixes: https://tracker.ceph.com/issues/75432
Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
(cherry picked from commit
5994e2a7faa49d03a65c4a9c126b2b9a1d24c3da)
}
}
ceph_assert(!need_attrs);
- ceph_assert(reads_sent);
}
+ ceph_assert(reads_sent);
std::optional<ECSubRead> local_read_op;
std::vector<std::pair<int, Message*>> m;