From 5c34de157706defe22701649a5d022dfde254b32 Mon Sep 17 00:00:00 2001 From: Wang Shilong Date: Tue, 11 Mar 2025 22:44:57 +0800 Subject: [PATCH] DAOS-17200 tests: avoid data corruption across all replicas (#16047) Fault injection may corrupt two replica datasets and cause DER_CSUM errors during fetch operations. Current rebuild logic indefinitely retries for these errors. Until protocol handling is improved to properly address this scenario, restrict fault injection testing to rank 0 only. Test-tag: test_daos_rebuild_simple Signed-off-by: Wang Shilong --- src/tests/suite/daos_rebuild_simple.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/tests/suite/daos_rebuild_simple.c b/src/tests/suite/daos_rebuild_simple.c index 72a46a85a94..93313b34582 100644 --- a/src/tests/suite/daos_rebuild_simple.c +++ b/src/tests/suite/daos_rebuild_simple.c @@ -1,5 +1,6 @@ /** * (C) Copyright 2016-2023 Intel Corporation. + * (C) Copyright 2025 Hewlett Packard Enterprise Development LP * * SPDX-License-Identifier: BSD-2-Clause-Patent */ @@ -1376,7 +1377,8 @@ rebuild_object_with_csum_error(void **state) int rc = 0; int i, j; daos_handle_t poh = arg->pool.poh; - int ranks = 3; /* will inject corruption to ranks 0-2 */ + /* only injection to rank 0, increase to 3 when rebuild could handle checksum error */ + int ranks = 1; daos_key_t dkey, akey; uint64_t dkey_val; char *akey_val = "0";