]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
librbd: Watcher should not attempt to re-watch after detecting blacklisting
authorJason Dillaman <dillaman@redhat.com>
Thu, 28 May 2020 20:38:40 +0000 (16:38 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 28 May 2020 20:38:40 +0000 (16:38 -0400)
commit6be1d49c35be4c937664939947a52f33696b0d8f
tree4647272bf1aa442e1a6c13b90bcbf04df0308b8b
parent07f9d8b5b2f7a72018329db69c0c367098f0b563
librbd: Watcher should not attempt to re-watch after detecting blacklisting

Currently, the Watcher state machine will spin as fast as it can sending
re-watch requests to the OSD and then retrying after it fails with the
EBLACKLISTED error. Treat a blacklisting similarly to how removal of the
object is treated: stop attempting to re-watch.

Fixes: https://tracker.ceph.com/issues/45715
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/Watcher.cc
src/test/librbd/test_mock_Watcher.cc