]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: leader watcher should not cancel get locker if locker is invalid 34040/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 20 Mar 2020 16:59:14 +0000 (12:59 -0400)
committerJason Dillaman <dillaman@redhat.com>
Fri, 20 Mar 2020 17:18:14 +0000 (13:18 -0400)
commita7cc4ab05af7b1ed4f16e8823fd0e6de2cfaad9c
treecc3dd9db0fd15aa2d8f0b777a027b7aaa241cd39
parent336a16bcaf0f23bd63dbac4d6797c801a6a0773d
rbd-mirror: leader watcher should not cancel get locker if locker is invalid

When a new leader acquires the lock, it will send out a lock acquired
notification along with periodic heartbeats. The get locker will attempt to
run immediately, but if a heartbeat arrives before it executes the heartbeat
will cancel the timer and reschedule it for the future. This process repeats
for each periodic heartbeat and the locker is never re-read from the OSD.

This is an issue only for namespace replayers due to the delayed fashion in
which the leader instance id is retrieved.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd_mirror/LeaderWatcher.cc