]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa: add file sync stuck test support
authorXiubo Li <xiubli@redhat.com>
Tue, 12 Apr 2022 11:40:02 +0000 (19:40 +0800)
committerXiubo Li <xiubli@redhat.com>
Mon, 30 May 2022 07:08:07 +0000 (15:08 +0800)
commit51ef18d78240e9d5ec74fa04e6acc8a5d71113eb
treea8e174ff527f489166e1ee9f824697b6afe11292
parentfe3eded4cd85704bc8c3ce7af957ec1b6045dc9e
qa: add file sync stuck test support

This will test the file sync of a directory, 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 3db3b4e2a4b853192c5b30c9594947ba45f96e03)

Conflicts:
qa/tasks/cephfs/test_misc.py
qa/tasks/cephfs/test_misc.py