Skip to content

Commit ecb187c

Browse files
authored
Forcibly terminate test cluster nodes at the end of tests (#98335)
1 parent c203442 commit ecb187c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/test-clusters/src/main/java/org/elasticsearch/test/cluster/ClusterHandle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public interface ClusterHandle extends Closeable {
129129
void upgradeToVersion(Version version);
130130

131131
/**
132-
* Cleans up any resources created by this cluster.
132+
* Cleans up any resources created by this cluster. Calling this method will forcibly terminate any running nodes.
133133
*/
134134
void close();
135135

test/test-clusters/src/main/java/org/elasticsearch/test/cluster/local/LocalClusterHandle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public boolean isStarted() {
9696

9797
@Override
9898
public void close() {
99-
stop(false);
99+
stop(true);
100100

101101
executor.shutdownNow();
102102
try {

0 commit comments

Comments
 (0)