This is an automated email from the ASF dual-hosted git repository.
dlmarion pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/accumulo.git
The following commit(s) were added to refs/heads/main by this push:
new 6a87c0ccfe Fixed ShutdownIT after recent Admin.stop change (#5757)
6a87c0ccfe is described below
commit 6a87c0ccfe061d22da8fd874b72ffdf59834d49b
Author: Dave Marion <[email protected]>
AuthorDate: Thu Jul 24 12:27:10 2025 -0400
Fixed ShutdownIT after recent Admin.stop change (#5757)
The IT was expecting the tserver to be down, but now
it may take a little time for the tserver to stop.
Modified the test to wait for the tserver to stop.
---
test/src/main/java/org/apache/accumulo/test/functional/ShutdownIT.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/test/src/main/java/org/apache/accumulo/test/functional/ShutdownIT.java
b/test/src/main/java/org/apache/accumulo/test/functional/ShutdownIT.java
index d024068732..45c62a07bc 100644
--- a/test/src/main/java/org/apache/accumulo/test/functional/ShutdownIT.java
+++ b/test/src/main/java/org/apache/accumulo/test/functional/ShutdownIT.java
@@ -34,6 +34,7 @@ import org.apache.accumulo.server.util.Admin;
import org.apache.accumulo.test.TestIngest;
import org.apache.accumulo.test.TestRandomDeletes;
import org.apache.accumulo.test.VerifyIngest;
+import org.apache.accumulo.test.util.Wait;
import org.junit.jupiter.api.Test;
public class ShutdownIT extends ConfigurableMacBase {
@@ -128,6 +129,7 @@ public class ShutdownIT extends ConfigurableMacBase {
log.info("Stopping " + doomed);
assertEquals(0,
cluster.exec(Admin.class, "stop",
doomed.toHostPortString()).getProcess().waitFor());
+ Wait.waitFor(() ->
c.instanceOperations().getServers(ServerId.Type.TABLET_SERVER).size() == 1);
tabletServers =
c.instanceOperations().getServers(ServerId.Type.TABLET_SERVER);
assertEquals(1, tabletServers.size());
assertNotEquals(tabletServers.iterator().next(), doomed);