From: Patrick Donnelly Date: Thu, 25 Mar 2021 20:24:07 +0000 (-0700) Subject: test: wait a time for inode release X-Git-Tag: v16.2.2~23^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e226d024cc9c9fc9c254c9553ba7f7c9083f26d6;p=ceph.git test: wait a time for inode release 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 (cherry picked from commit b3aac52075bc6c90410a70ad868820042a96b5f0) --- diff --git a/src/test/fs/test_ino_release_cb.cc b/src/test/fs/test_ino_release_cb.cc index 7b3fc6260735..cff4b9405c3b 100644 --- a/src/test/fs/test_ino_release_cb.cc +++ b/src/test/fs/test_ino_release_cb.cc @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -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;