From 45f99f6562349f77be6b47bf1bc5a94abf9fd11d Mon Sep 17 00:00:00 2001 From: "John L. Hammond" Date: Fri, 8 Dec 2017 10:19:48 -0600 Subject: [PATCH] LU-10038 test: ignore readdir races in sanity 133g In sanity test_133g() writing to some files (for example mdt/*/exports/clear) may cause cause the proc tree to change while find is running. Avoid errors in these cases by adding the -ignore_readdir_race option to the find invocations. Test-Parameters: trivial testlist=sanity Signed-off-by: John L. Hammond Change-Id: I3ce61ee0f4e1041041d6872a0fe03488a9df363c Reviewed-on: https://review.whamcloud.com/30451 Tested-by: Jenkins Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Jian Yu --- lustre/tests/sanity.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index da0a365..f98a0f4 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -10096,6 +10096,7 @@ test_133g() { echo "proc_dirs='$proc_dirs'" [ -n "$proc_dirs" ] || error "no proc_dirs on $HOSTNAME" find $proc_dirs \ + -ignore_readdir_race \ -type f \ -not -name force_lbug \ -not -name changelog_mask \ @@ -10111,6 +10112,7 @@ test_133g() { echo "${facet}_proc_dirs='$facet_proc_dirs'" [ -z "$facet_proc_dirs" ] && error "no proc_dirs on $facet" do_facet $facet find $facet_proc_dirs \ + -ignore_readdir_race \ -type f \ -not -name force_lbug \ -not -name changelog_mask \ -- 1.8.3.1