Repository navigation
PeeringState.cc: Only populate want_acting when num_osds < bucket_max - #57381
Conversation
9f37ccd to
f0ded5f
Compare
|
@gregsfortytwo we saw this bug again in bug scrub; just pinging you for a review. |
|
@gregsfortytwo pinging again for review |
|
/a/ksirivad-2024-07-12_16:29:18-rados-wip-ksirivad-pr-56233-plus-57381-distro-default-smithi/ 287/316 Passed (scheduled against RADOS suite, using a branch that combines #56233 with #57381 wip-ksirivad-pr-56233-plus-57381 FAILED & DEAD jobs unrelated 7798816, 7798892, 7798966, 7799045 https://tracker.ceph.com/issues/66881 qa/workunits/cephtool/test.sh: cannot remove '/tmp/foo': Operation not permitted RADOS approved |
|
I'm actually not sure this is the correct fix. The original code: suggests that the invariant is that doesn't actually enforce that invariant. Specifically, the ancestors for any primary or up osds we added up in step 1): via add_required will already have had inc_selected() called and could possibly already have hit bucket_max. I think the better fix would be to correct the loop above to check for the bucket_max condition in addition to whether the ancestor is empty: |
|
@athanatos Here based on the code: I'm pretty certain that during the time we logged
Therefore, if we were to add a check when populating the |
|
@kamoltat In your example, 8, 6, and 7 all have the same common ancestor right? If 8 and 6 are in up and bucket_max is 2, would skip adding 9 to aheap as anc.second.get_num_selected() would already be 2 and therefore >= bucket_max. |
f0ded5f to
4693cf8
Compare
Currently, in `calc_replicated_acting_stretch` we would call `pop_ancester` before checking whether the next OSD we populate in the want_acting set would have the ancestor count that is >= bucket_max. Fixes: https://tracker.ceph.com/issues/65371 Signed-off-by: Kamoltat <[email protected]>
4693cf8 to
e26545f
Compare
RADOS APPROVED/ksirivad-2024-08-06_15:03:07-rados-wip-ksirivad-57381-and-56233-distro-default-smithi/ Known Failures:
|
Currently, in
calc_replicated_acting_stretchwe would call
pop_ancesterbefore checking whetherthe next OSD we populate in the want_acting set would have
the ancestor count that is >= bucket_max.
Fixes: https://tracker.ceph.com/issues/65371
ATTENTION:
THIS PR SHOULD BE TESTED IN CONJUNCTION WITH #56233
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e