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 9903451758d HDDS-17007. Speed up
TestBlockDeletion#testContainerStateAfterDNRestart (#11539)
9903451758d is described below
commit 9903451758dc1723a10a4963fc734e13b42e9a5e
Author: Shuo Huang <[email protected]>
AuthorDate: Thu Oct 15 23:38:04 2026 +0800
HDDS-17007. Speed up TestBlockDeletion#testContainerStateAfterDNRestart
(#11539)
---
.../common/statemachine/commandhandler/TestBlockDeletion.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/common/statemachine/commandhandler/TestBlockDeletion.java
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/common/statemachine/commandhandler/TestBlockDeletion.java
index 00aef86e3bb..02cdf6407a8 100644
---
a/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/common/statemachine/commandhandler/TestBlockDeletion.java
+++
b/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/container/common/statemachine/commandhandler/TestBlockDeletion.java
@@ -520,7 +520,6 @@ public void testContainerStateAfterDNRestart() throws
Exception {
// Delete key
writeClient.deleteKey(keyArgs);
- Thread.sleep(10000);
GenericTestUtils.waitFor(() -> {
try {
@@ -531,7 +530,7 @@ public void testContainerStateAfterDNRestart() throws
Exception {
} catch (IOException e) {
throw new RuntimeException(e);
}
- }, 100, 10 * 1000);
+ }, 100, 20 * 1000);
// Container state should be empty now as key got deleted
assertTrue(getContainerFromDN(
@@ -649,7 +648,6 @@ public void testContainerDeleteWithInvalidKeyCount()
// Delete key
writeClient.deleteKey(keyArgs);
- Thread.sleep(5000);
// Ensure isEmpty are true for all replica after delete key
GenericTestUtils.waitFor(() -> {
@@ -661,7 +659,7 @@ public void testContainerDeleteWithInvalidKeyCount()
} catch (IOException e) {
throw new RuntimeException(e);
}
- }, 500, 5 * 2000);
+ }, 500, 15 * 1000);
// Update container replica by making invalid keyCount in one replica
ContainerReplica replicaOne = ContainerReplica.newBuilder()
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]