]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: avoid emitting cap warnings before evicting session 6170/head
authorJohn Spray <john.spray@redhat.com>
Fri, 2 Oct 2015 21:14:38 +0000 (22:14 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 5 Oct 2015 09:28:26 +0000 (10:28 +0100)
commite2e1bd9c4063b5e7181c60499530e7dbfe0f1b3c
tree784d5f7ca73b1d85da8aaf39a44abc77dd83de81
parent362b18a532a5077a1418c88f5acbc6e468a45a5a
mds: avoid emitting cap warnings before evicting session

In the case where a client dies, and another client immediately
tries to access a file locked by the dead client, we would
previously *sometimes* emit a "client.xyz isn't responding to
mclientcaps" warning to the cluster log, right before
evicting the stale session.  This was because the timeout
for the session eviction and the timeout for the
warning message are both 60s.

Fix this by checking the stale sessions before doing the
warning message check in Locker.  If a session is going
to get evicted in this tick, it will already be gone
by the time Locker thinks about emitting the warning
message.

Fixes: #13334
Signed-off-by: John Spray <john.spray@redhat.com>
src/mds/MDSRank.cc