]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: stop forwarding the request when exceeding 256 times 46178/head
authorXiubo Li <xiubli@redhat.com>
Tue, 29 Mar 2022 08:45:12 +0000 (16:45 +0800)
committerXiubo Li <xiubli@redhat.com>
Fri, 6 May 2022 02:13:08 +0000 (10:13 +0800)
commit69b549d0fcea78cf73e3c7b5009fb8b91ebdcabc
tree441f30bcc00421d4473c1bc6d87db0b7a6ea7743
parentd204189761c9cf64d5ff5976c86ae9b6f566e711
client: stop forwarding the request when exceeding 256 times

The type of 'num_fwd' in ceph 'MClientRequestForward' is 'int32_t',
while in 'ceph_mds_request_head' the type is '__u8'. So in case
the request bounces between MDSes exceeding 256 times, the client
will get stuck.

In this case it's ususally a bug in MDS and continue bouncing the
request makes no sense.

Fixes: https://tracker.ceph.com/issues/55129
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit ad61e1dd1a56cd27be17886e8338133196e75a2a)
src/client/Client.cc