]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: record and dump last tid for trimming completed requests (or flushes)
authorVenky Shankar <vshankar@redhat.com>
Tue, 17 Jan 2023 10:45:04 +0000 (05:45 -0500)
committerVenky Shankar <vshankar@redhat.com>
Fri, 31 Mar 2023 09:42:24 +0000 (15:12 +0530)
commit3784d9bfb4541de39d803eaed88af7796de87e83
tree849d4c3df9857ca761fb17b96e6f507b585d6ade
parent8842c790e5638ab798f4c186a2a2a8e3be5fa7b6
mds: record and dump last tid for trimming completed requests (or flushes)

CephFS clients include `oldest_tid` as part of the client request
to the MDS. This field is the tid of the oldest incomplete mds
request (excluding setfilelock request). The MDS uses this to
trim completed requests (and flushes). In one case, the ceph
cluster had an extremely high completed requests count, meaning,
for some reason the client was not advancing its `oldest_tid`
field, although, the MDS had successfully "safe replied" the
request back to the client.

This change adds a debug aid for recording and dumping this
field. It might be possible to fetch this from clients (if
not, we should add that!), but it makes sense to have this
information available from the MDS.

Partially-Fixes: http://tracker.ceph.com/issues/57985
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit d01acd531a0694514f7e7e11087ce7a9d16e94d9)

 Conflicts:
doc/cephfs/health-messages.rst

Minor conflict w.r.t. line breaks in the document.
doc/cephfs/health-messages.rst
src/mds/SessionMap.cc
src/mds/SessionMap.h