]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: Watcher should not attempt to re-watch after detecting blacklisting 35385/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 28 May 2020 20:38:40 +0000 (16:38 -0400)
committerNathan Cutler <ncutler@suse.com>
Thu, 4 Jun 2020 12:42:23 +0000 (14:42 +0200)
commitfab17270c0f311c4e91a6a370a073124d892f9ee
tree6b87c9c1d04b3403413a3c7097a2c653efe89f90
parent547e340e86bd5463af2d49a848cf5701e0f3f036
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