Repository navigation
pacific: osd/PeeringState: fix acting_set_writeable min_size check - #40759
Conversation
acting has placeholders for ec, need to use actingset. Signed-off-by: Samuel Just <[email protected]> (cherry picked from commit 7b2e0f4)
acting.size() >= pool.info.min_size is meant to check min_size against
acting set participants, but acting is a vector with placeholders.
actingset is the representation with placeholders removed.
The upshot of this bug is that the activation process will basically
ignore min_size for an ec pool allowing writes in cases where it
shouldn't. PastIntervals::check_new_interval, however, performs
the check correctly, and will therefore discount intervals in which
we really did serve writes as not writeable. This can trigger many
different problem conditions including but not limited to:
- Unfound objects due to accepting a last_update with insufficient
osds
- Lost writes
- Crashes due to peering rules being violated
This bug was originally introduced with recovery below min_size in
e5a96fd, and then preserved through refactors in 749a13d and 95bec9.
7cb818a exposed it with with expansion of recovery below min_size
to include ec pools (acting.size() is sufficient for replicated
pools).
Fixes: https://tracker.ceph.com/issues/48613
Fixes: https://tracker.ceph.com/issues/48417
Signed-off-by: Samuel Just <[email protected]>
(cherry picked from commit 642a1c1)
|
@athanatos Can you suggest how the second commit could be backported to |
|
jenkins test docs |
|
@smithfarm 95bec9 recently consolidated those calls to a single place -- fixing those calls individually would likely suffice. @ideepika Is there a version of the validation test you used we can backport as well to test it? |
|
@athanatos Thanks. I linked to your comment in the relevant backport issues so whoever takes them up will be able to benefit from your advice. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
This seems to have a bunch of extra commits in it now? |
|
@athanatos Yes, the current state can be ignored, I think. At some point, the extra commits will magically disappear :-) |
|
jenkins test api |
|
jenkins test docs |
@athanatos will create backports for validation tests, sorry missed notification earlier |
backport tracker: https://tracker.ceph.com/issues/50154
backport of #40572
parent tracker: https://tracker.ceph.com/issues/48613
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/master/src/script/ceph-backport.sh