]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr: fix MgrModuleRecoverDB to honor its retry budget on db cleanup failure 69699/head
authorAvan Thakkar <athakkar@redhat.com>
Wed, 24 Jun 2026 11:15:51 +0000 (16:45 +0530)
committerAvan Thakkar <athakkar@redhat.com>
Wed, 24 Jun 2026 12:22:39 +0000 (17:52 +0530)
commit0077cb990dd6ea11fbed86be6e7449d8f035e2d0
treef97001d9094ce055762a717bc891858b82b47bc7
parent89ff2cbcef00bb60a090d2c385d9978de8699ddd
mgr: fix MgrModuleRecoverDB to honor its retry budget on db cleanup failure

Both close_db() and open_db() during retry were unguarded, so a failure
in either escaped the decorator immediately instead of retrying up to
MAX_DBCLEANUP_RETRIES.

Wrapped both in the same try/except, and logged the
failed attempt.

Fixes: https://tracker.ceph.com/issues/77635
Signed-off-by: Avan Thakkar <athakkar@redhat.com>
src/pybind/mgr/mgr_module.py