This is an automated email from the ASF dual-hosted git repository.
jojochuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 219570fba7a HDDS-16982. Skip stopped datanodes in
TestFailureHandlingByClient#waitForBlockContainer (#11525)
219570fba7a is described below
commit 219570fba7ad26b3c0d8b8a407635355240e4b40
Author: Siyao Meng <[email protected]>
AuthorDate: Fri Oct 16 15:47:48 2026 -0700
HDDS-16982. Skip stopped datanodes in
TestFailureHandlingByClient#waitForBlockContainer (#11525)
Generated-by: Claude Opus 5.5 (1M context) <[email protected]>
---
.../apache/hadoop/ozone/client/rpc/TestFailureHandlingByClient.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestFailureHandlingByClient.java
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestFailureHandlingByClient.java
index 8b87d62277f..632b45a5eee 100644
---
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestFailureHandlingByClient.java
+++
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestFailureHandlingByClient.java
@@ -314,6 +314,11 @@ private KeyValueContainerData waitForBlockContainer(long
containerId,
AtomicReference<KeyValueContainerData> found = new AtomicReference<>();
GenericTestUtils.waitFor(() -> {
for (HddsDatanodeService dn : cluster.getHddsDatanodes()) {
+ // BlockUtils.getDB would reopen the closed DB of a stopped datanode
and keep it cached,
+ // so restarting that datanode later fails to lock its DB and exits
the JVM.
+ if (dn.isStopped()) {
+ continue;
+ }
KeyValueContainer container = (KeyValueContainer) dn
.getDatanodeStateMachine().getContainer().getContainerSet()
.getContainer(containerId);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]