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 48b2ae4570 HDDS-12309. Intermittent failure in
TestCloseContainerCommandHandler.testThreadPoolPoolSize (#7857)
48b2ae4570 is described below
commit 48b2ae4570b804743a6647e8eaeba97dc1191099
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Thu Feb 13 15:24:26 2025 +0100
HDDS-12309. Intermittent failure in
TestCloseContainerCommandHandler.testThreadPoolPoolSize (#7857)
---
.../TestCloseContainerCommandHandler.java | 19 -------------------
1 file changed, 19 deletions(-)
diff --git
a/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/common/statemachine/commandhandler/TestCloseContainerCommandHandler.java
b/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/common/statemachine/commandhandler/TestCloseContainerCommandHandler.java
index 2e1e0eafd0..1251a33072 100644
---
a/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/common/statemachine/commandhandler/TestCloseContainerCommandHandler.java
+++
b/hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/common/statemachine/commandhandler/TestCloseContainerCommandHandler.java
@@ -44,7 +44,6 @@
import static org.apache.hadoop.ozone.OzoneConsts.GB;
import static org.assertj.core.api.Assertions.assertThat;
import static org.junit.jupiter.api.Assertions.assertThrows;
-import static org.junit.jupiter.api.Assertions.assertTrue;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.mockito.Mockito.any;
import static org.mockito.Mockito.eq;
@@ -296,24 +295,6 @@ private void waitTillFinishExecution(
@Test
public void testThreadPoolPoolSize() {
assertEquals(1, subject.getThreadPoolMaxPoolSize());
- assertEquals(0, subject.getThreadPoolActivePoolSize());
-
- CloseContainerCommandHandler closeContainerCommandHandler =
- new CloseContainerCommandHandler(10, 10, "");
- closeContainerCommandHandler.handle(new CloseContainerCommand(
- CONTAINER_ID + 1, PipelineID.randomId()),
- ozoneContainer, context, null);
- closeContainerCommandHandler.handle(new CloseContainerCommand(
- CONTAINER_ID + 2, PipelineID.randomId()),
- ozoneContainer, context, null);
- closeContainerCommandHandler.handle(new CloseContainerCommand(
- CONTAINER_ID + 3, PipelineID.randomId()),
- ozoneContainer, context, null);
- closeContainerCommandHandler.handle(new CloseContainerCommand(
- CONTAINER_ID + 4, PipelineID.randomId()),
- ozoneContainer, context, null);
- assertEquals(10, closeContainerCommandHandler.getThreadPoolMaxPoolSize());
- assertTrue(closeContainerCommandHandler.getThreadPoolActivePoolSize() > 0);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]