Skip to content

Commit 9f5ca61

Browse files
committed
mds: derr log and dump sessionmap when reclaim session uuid isn't found
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 <[email protected]>
1 parent ec0f9cc commit 9f5ca61

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/mds/Server.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,9 @@ void Server::reclaim_session(Session *session, const cref_t<MClientReclaim> &m)
472472
ceph_assert(!session->reclaiming_from);
473473
session->reclaiming_from = target;
474474
reply->set_addrs(entity_addrvec_t(target->info.inst.addr));
475+
} else {
476+
derr << ": could not find session by uuid:" << m->get_uuid() << dendl;
477+
mds->sessionmap.dump();
475478
}
476479

477480
if (flags & CEPH_RECLAIM_RESET) {

0 commit comments

Comments
 (0)