From e226d024cc9c9fc9c254c9553ba7f7c9083f26d6 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Thu, 25 Mar 2021 13:24:07 -0700 Subject: [PATCH] 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) --- src/test/fs/test_ino_release_cb.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/fs/test_ino_release_cb.cc b/src/test/fs/test_ino_release_cb.cc index 7b3fc62607358..cff4b9405c3b4 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; -- 2.39.5