Whamcloud - gitweb
EX-7447 utils: lamigo to ignore ENODATA
authorAlex Zhuravlev <bzzz@whamcloud.com>
Thu, 4 May 2023 06:33:14 +0000 (09:33 +0300)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 12 May 2023 07:15:41 +0000 (07:15 +0000)
lamigo shouldn't print an error message when replication fails
with ENODATA - this is a valid case as llapi_layout_get_by_path()
returns ENODATA in all case when a layout can't be fetching,
including non-existing file.

Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I8184d4af78514016b1afb3bca2eb34caf123d3ca
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/50858
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Alexandre Ioffe <aioffe@ddn.com>
lipe/src/lamigo.c

index 1faa1e2..8cc904f 100644 (file)
@@ -858,7 +858,7 @@ static void *lamigo_replicate_one(void *args)
            /* 1 from setprefer (see EX-3591) */
            (rj->rj_setprefer && status != 0 && status != 1) ||
            /* EBUSY from mirror extend/resync */
-           (!rj->rj_setprefer && status != 0 && status != EBUSY))
+           (!rj->rj_setprefer && status != 0 && status != EBUSY && status != ENODATA))
                LX_ERROR("command '%s' on '%s' failed: rc = %d, status = %d\n",
                         cmd, agent->rag_hostname, rc, status);
 out: