Repository navigation
Conversation
Otherwise it may trigger ceph_assert(osd_weight.count(i.first)) failure in calc_deviations when using the result. Fixes: https://tracker.ceph.com/issues/48896 Signed-off-by: Mykola Golub <[email protected]>
athanatos
left a comment
There was a problem hiding this comment.
Internal property of OSDMap, should be easy to add a unit test?
|
@athanatos Thank you for the unit test suggestion. After writing the test I discovered that my current version would make it crash when there was an osd with 0 weight due to another assertion failure [1], and now I think I was too naive with my approach. My idea was based on the hint from the user mailing list that it had happened after reweighting an osd to 0. But trying to reproduce this in unit tests I failed. Just reweighting is not enough. The reported assertion failure seems possible only when an osd with 0 weight may still be found in up set for at least one pg (in I see that [1] Line 5315 in 39e3700 [2] https://lists.ceph.io/hyperkitty/list/[email protected]/message/VSTIUSBPJUZER7UNBI5DPTOGATV5EXRF/ |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
Otherwise it may trigger ceph_assert(osd_weight.count(i.first)) failure in calc_deviations when using the result.
Fixes: https://tracker.ceph.com/issues/48896
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. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
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 windows