]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: derr log and dump sessionmap when reclaim session uuid isn't found
authorVenky Shankar <vshankar@redhat.com>
Tue, 4 Jun 2024 04:09:51 +0000 (00:09 -0400)
committerVenky Shankar <vshankar@redhat.com>
Tue, 4 Jun 2024 05:14:34 +0000 (10:44 +0530)
If the old session uuid isn't found in sessionmap, nothing is
logeed. The client however returns -ENOENT to the caller when
no reclaim addrs are returned.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
src/mds/Server.cc

index 918cc4e613c1d3dd532848b3e849178a9921c8a0..b37e742a9e2b8f0672ec218eb3dacddc51d8c835 100644 (file)
@@ -472,6 +472,9 @@ void Server::reclaim_session(Session *session, const cref_t<MClientReclaim> &m)
     ceph_assert(!session->reclaiming_from);
     session->reclaiming_from = target;
     reply->set_addrs(entity_addrvec_t(target->info.inst.addr));
+  } else {
+    derr << ": could not find session by uuid:" << m->get_uuid() << dendl;
+    mds->sessionmap.dump();
   }
 
   if (flags & CEPH_RECLAIM_RESET) {