From: Prasanna Kumar Kalever Date: Fri, 5 Dec 2025 11:29:13 +0000 (+0530) Subject: rbd-mirror: suppress unnecessary log message during snapshot unlink X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=88b230cbcdaa4cf48531eaf27ff353f125924050;p=ceph-ci.git rbd-mirror: suppress unnecessary log message during snapshot unlink remote snapshots without a mirror peer UUID are filtered out early. Once the peer UUID is removed from a remote snapshot, it no longer appears in m_remote_group_snaps locally. As a result, mirror_group_snapshot_unlink_peer() will not find that snapshot in m_remote_group_snaps, and this condition is most expected now. avoid printing the log message that warns about the snapshot not being present, as this is not the true case (as it is filtered) and can be misleading. Moreover, the message would otherwise be printed repeatedly until the local snapshot is eventually removed, creating unnecessary noise in the logs. Signed-off-by: Prasanna Kumar Kalever --- diff --git a/src/tools/rbd_mirror/group_replayer/Replayer.cc b/src/tools/rbd_mirror/group_replayer/Replayer.cc index 005fa28a46c..9db3596781a 100644 --- a/src/tools/rbd_mirror/group_replayer/Replayer.cc +++ b/src/tools/rbd_mirror/group_replayer/Replayer.cc @@ -1619,8 +1619,6 @@ void Replayer::mirror_group_snapshot_unlink_peer(const std::string &snap_id) }); if (remote_snap == m_remote_group_snaps.end()) { - derr << "remote group snapshot not found: " - << snap_id << dendl; return; }