]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
cephfs_mirror: Add ErrorListener to maintain blocklisted/failed timestamp in FSMirror
authorJos Collin <jcollin@redhat.com>
Tue, 28 May 2024 14:57:55 +0000 (20:27 +0530)
committerJos Collin <jcollin@redhat.com>
Wed, 17 Jul 2024 08:15:05 +0000 (13:45 +0530)
commit6ecc7588de533e88b2d600cdb6a990b32d1db69e
tree9945b371d284c7ae1f8ff2f4872936bbebea40f2
parent929494cc71991b361ede322448c60fb939d3a1f1
cephfs_mirror: Add ErrorListener to maintain blocklisted/failed timestamp in FSMirror

Have FSMirror register a listener with InstanceWatcher/MirrorWatcher which would get invoked when the mirror daemon is blocklisted or failed.
Thus FSMirror can maintain the last blocklisted/failed timestamp and use that for restarting the mirror daemon.

Fixes: https://tracker.ceph.com/issues/64927
Fixes: https://tracker.ceph.com/issues/51964
Fixes: https://tracker.ceph.com/issues/63931
Fixes: https://tracker.ceph.com/issues/63089
Signed-off-by: Jos Collin <jcollin@redhat.com>
(cherry picked from commit 77ec7bfde7a349b0e06b34ecdf328996c7642d43)
src/tools/cephfs_mirror/FSMirror.cc
src/tools/cephfs_mirror/FSMirror.h
src/tools/cephfs_mirror/InstanceWatcher.cc
src/tools/cephfs_mirror/InstanceWatcher.h
src/tools/cephfs_mirror/MirrorWatcher.cc
src/tools/cephfs_mirror/MirrorWatcher.h
src/tools/cephfs_mirror/Watcher.h