This is an automated email from the ASF dual-hosted git repository.
adoroszlai 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 6ab9ed82a81 HDDS-17651. Intermittent timeout stopping datanodes in
TestQueryNode#testStaleNodesCount (#11908)
6ab9ed82a81 is described below
commit 6ab9ed82a813e4e481cd8a63714d48a35a335ab4
Author: Sergey Soldatov <[email protected]>
AuthorDate: Mon Nov 2 06:11:29 2026 -0800
HDDS-17651. Intermittent timeout stopping datanodes in
TestQueryNode#testStaleNodesCount (#11908)
---
.../java/org/apache/hadoop/hdds/scm/node/TestQueryNode.java | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/node/TestQueryNode.java
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/node/TestQueryNode.java
index d4de3901a37..dc33f79c03e 100644
---
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/node/TestQueryNode.java
+++
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/hdds/scm/node/TestQueryNode.java
@@ -30,8 +30,6 @@
import static org.junit.jupiter.api.Assertions.assertNotNull;
import java.io.IOException;
-import java.util.concurrent.ExecutorService;
-import java.util.concurrent.Executors;
import org.apache.hadoop.hdds.conf.OzoneConfiguration;
import org.apache.hadoop.hdds.protocol.DatanodeDetails;
import org.apache.hadoop.hdds.protocol.proto.HddsProtos;
@@ -82,11 +80,8 @@ public void tearDown() throws Exception {
@Test
public void testStaleNodesCount() throws Exception {
- ExecutorService executor = Executors.newFixedThreadPool(1);
- executor.execute(() -> {
- cluster.shutdownHddsDatanode(0);
- cluster.shutdownHddsDatanode(1);
- });
+ cluster.shutdownHddsDatanode(0);
+ cluster.shutdownHddsDatanode(1);
GenericTestUtils.waitFor(() -> {
try {
return
@@ -101,7 +96,7 @@ public void testStaleNodesCount() throws Exception {
GenericTestUtils.waitFor(() ->
cluster.getStorageContainerManager().getNodeCount(DEAD) == 2,
- 100, 4 * 1000);
+ 100, 10 * 1000);
// Assert that we don't find any stale nodes.
int nodeCount = scmClient.queryNode(null, STALE,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]