]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: Watcher should not attempt to re-watch after detecting blacklisting 35439/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 28 May 2020 20:38:40 +0000 (16:38 -0400)
committerNathan Cutler <ncutler@suse.com>
Sat, 6 Jun 2020 08:25:19 +0000 (10:25 +0200)
commit8e81b8f20f8c176cfa6a4459f8fa2c5ff7407a02
treeac4856a78c4afb29bad53eb4f10fedfff9f23486
parent1e0ec3533539118eafdcd26ff86b0254fead92d6
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>
(cherry picked from commit 6be1d49c35be4c937664939947a52f33696b0d8f)
src/librbd/Watcher.cc
src/test/librbd/test_mock_Watcher.cc