]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa: add filesystem sync stuck test support
authorXiubo Li <xiubli@redhat.com>
Tue, 12 Apr 2022 04:37:13 +0000 (12:37 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 30 May 2022 07:06:15 +0000 (15:06 +0800)
commitfe3eded4cd85704bc8c3ce7af957ec1b6045dc9e
tree94209e651768fcb0c1ff6b49c8dee8247a6de438
parent952cab438ba4ec7e873b391d1505e501a7b33a51
qa: add filesystem sync stuck test support

This will test the sync of the filesystem, which maybe stuck for
at most 5 seconds. This was because the related code will wait
for all the unsafe requests to get safe reply from MDSes, but the
MDSes just think that it's unnecessary to flush the mdlog immediately
after early reply, and the mdlog will be flushed every 5 seconds
in the tick thread.

This should have been fixed in kclient and libcephfs by triggering
mdlog flush before waiting requests' safe reply.

Fixes: https://tracker.ceph.com/issues/55283
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit b6fc5480f6ba6352fa72062e1376d0dd6b9074cd)
qa/tasks/cephfs/test_misc.py