From: Bobi Jam Date: Tue, 23 May 2023 03:11:37 +0000 (+0800) Subject: LU-16842 fsx: tolerate delete last non-stale mirror error X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F90%2F51090%2F1;p=fs%2Flustre-release.git LU-16842 fsx: tolerate delete last non-stale mirror error fsx mirror split test could try to delete the last non-stale mirror of a file and that's a tolerable error scenario. The fsx FLR test randomly choose a mirror operation and this situation could happen. Fixes: 04ab0cc869c (LU-14156 utils: mirror split to check for last in-sync early) Signed-off-by: Bobi Jam Change-Id: I80c294da80740b21e00ae72a092fd8883ec7d60e --- diff --git a/lustre/tests/fsx.c b/lustre/tests/fsx.c index fde6abe..8c31179 100644 --- a/lustre/tests/fsx.c +++ b/lustre/tests/fsx.c @@ -1442,7 +1442,12 @@ do_mirror_ops(int op) rc = WEXITSTATUS(rc); if (rc > 0) { prt("%s: %d\n", cmd, rc); - report_failure(184); + /** + * mirror split won't delete the last non-stale mirror, + * and returns EUCLEAN + */ + if (rc != EUCLEAN) + report_failure(184); } } output_debug(monitorstart, 0, cmd);