]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: wait a time for inode release
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 25 Mar 2021 20:24:07 +0000 (13:24 -0700)
committersinguliere <singuliere@autistici.org>
Fri, 9 Apr 2021 05:30:03 +0000 (07:30 +0200)
There's no guarantee the MDS will recall state faster than the client
can open the inodes. (Recall happens every ~2 seconds.)

Fixes: https://tracker.ceph.com/issues/49500
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit b3aac52075bc6c90410a70ad868820042a96b5f0)

src/test/fs/test_ino_release_cb.cc

index 7b3fc626073581c013cc9c3a2eebecd1cdaf42ca..cff4b9405c3b410d7326513da986b23e32c532d4 100644 (file)
@@ -1,4 +1,5 @@
 #include <string>
+#include <unistd.h>
 #include <include/fs_types.h>
 #include <mds/mdstypes.h>
 #include <include/cephfs/libcephfs.h>
@@ -71,6 +72,7 @@ int main(int argc, char *argv[])
                ret = ceph_ll_lookup_inode(cmount, inos[i], &inodes[i]);
                assert(ret >= 0);
        }
+    sleep(45);
 
        assert(cb_done);
        return 0;