]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/volumes: unregister job upon async threads exception 33569/head
authorVenky Shankar <vshankar@redhat.com>
Wed, 26 Feb 2020 04:52:37 +0000 (23:52 -0500)
committerVenky Shankar <vshankar@redhat.com>
Thu, 27 Feb 2020 04:44:46 +0000 (23:44 -0500)
commitf071465e2bb8c9d1046b3562219e0fbe04d8b014
tree259f5c280c01d54baef681f25a0de5a66617978a
parentd7e0d07101f75950ae482d2aeb08d3eeab024ade
mgr/volumes: unregister job upon async threads exception

If the async threads hit a temporary exception the job is
never unregistered and therefore gets skipped by the async
threads on subsequent scans.

Patrick hit this in nautilus when one of the purge threads
hit an exception when trying to log a message. The trash
entry was never picked up again by the purge threads.

Fixes: http://tracker.ceph.com/issues/44315
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 46476ef2e290bd15af2fec2410cb4f3f86b27cd2)
src/pybind/mgr/volumes/fs/async_job.py