New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quincy: pybind/mgr/progress: enforced try and except on accessing event dictionary #44671
quincy: pybind/mgr/progress: enforced try and except on accessing event dictionary #44671
Conversation
…onary There is a certain race condition scenario where an event gets deleted while the progress module iterates through the ``events`` dictionary, without a ``try and except``, this will cause an unhandled exception error and will crash the module. This commit will enforce ``try and except`` on every part of the code where we are accessing the ``events`` dictionary. Fixes: https://tracker.ceph.com/issues/53803 Signed-off-by: Kamoltat <ksirivad@redhat.com> (cherry picked from commit b70d4a9)
https://pulpito.ceph.com/ksirivad-2022-01-19_20:56:10-rados:mgr-wip-ksirivad-quincy-backport-44553-distro-basic-smithi/6628033/ |
From @ljflores "@yuriweinstein @Nehaojha looks good from a RADOS standpoint. Failures, unrelated: Details: |
@yuriw looks good to merge! |
Think merging this PR should be fine, the failure I posted above in the comments is more related to how the test case doesn't accurately evaluate when 0 PGs are affected due to marking osd in or out: https://tracker.ceph.com/issues/53984. Therefore, this PR is not affected if it merges first as it fixes another separate issue. |
jenkins test api |
1 similar comment
jenkins test api |
There is a certain race condition scenario where
an event gets deleted while the progress module
iterates through the
events
dictionary,without a
try and except
, this will causean unhandled exception error and will crash
the module.
This commit will enforce
try and except
on every part of the code where we are accessing
the
events
dictionary.Fixes: https://tracker.ceph.com/issues/53803
Backporting the relevant commits from master PR:
#44553
Signed-off-by: Kamoltat ksirivad@redhat.com
Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test dashboard cephadm
jenkins test api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox