]> 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>
Thu, 2 Jun 2022 04:40:17 +0000 (12:40 +0800)
commit4c157991a8a4d4b341d72bcd56254eff4f491142
tree0d5e3f79993d3d724bebc81c584b8d54f08b3ff7
parentb2fe9ec8f196344392fe3f6585f09e54ecdb568a
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