Skip to content

Commit

Permalink
Address review comment
Browse files Browse the repository at this point in the history
Signed-off-by: Gagan Juneja <[email protected]>
  • Loading branch information
Gagan Juneja committed Sep 6, 2023
1 parent edf60a3 commit df58f96
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ public Path nodeConfigPath(int nodeOrdinal) {
assertThat(second.nodes().getSize(), equalTo(1));
assertThat(first.nodes().getClusterManagerNodeId(), not(equalTo(second.nodes().getClusterManagerNodeId())));
assertThat(first.metadata().clusterUUID(), not(equalTo(second.metadata().clusterUUID())));
internalCluster().stopNodesAndClients();
}
}

Expand Down Expand Up @@ -179,7 +178,6 @@ public Path nodeConfigPath(int nodeOrdinal) {
final ClusterState first = internalCluster().getInstance(ClusterService.class).state();
assertThat(first.nodes().getSize(), equalTo(1));
assertBusy(() -> mockAppender.assertAllExpectationsMatched());
internalCluster().stopNodesAndClients();
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1915,10 +1915,6 @@ private void stopNodesAndClient(NodeAndClient nodeAndClient) throws IOException
stopNodesAndClients(Collections.singleton(nodeAndClient));
}

public void stopNodesAndClients() throws IOException {
stopNodesAndClients(nodes.values());
}

private synchronized void stopNodesAndClients(Collection<NodeAndClient> nodeAndClients) throws IOException {
final Set<String> excludedNodeIds = excludeClusterManagers(nodeAndClients);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
import org.opensearch.test.disruption.ServiceDisruptionScheme;
import org.opensearch.test.store.MockFSIndexStore;
import org.opensearch.test.telemetry.MockTelemetryPlugin;
import org.opensearch.test.telemetry.tracing.StrictCheckSpanProcessor;
import org.opensearch.test.transport.MockTransportService;
import org.opensearch.transport.TransportInterceptor;
import org.opensearch.transport.TransportRequest;
Expand Down Expand Up @@ -2295,7 +2296,9 @@ public static void afterClass() throws Exception {
INSTANCE.printTestMessage("cleaning up after");
INSTANCE.afterInternal(true);
checkStaticState(true);
StrictCheckSpanProcessor.validateTracingStateOnShutdown();
}

} finally {
SUITE_SEED = null;
currentCluster = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,6 @@
import org.opensearch.search.MockSearchService;
import org.opensearch.test.junit.listeners.LoggingListener;
import org.opensearch.test.junit.listeners.ReproduceInfoPrinter;
import org.opensearch.test.telemetry.tracing.StrictCheckSpanProcessor;
import org.opensearch.threadpool.ThreadPool;
import org.opensearch.transport.TransportService;
import org.opensearch.transport.nio.MockNioTransportPlugin;
Expand Down Expand Up @@ -627,7 +626,6 @@ public void log(StatusData data) {
protected static void checkStaticState(boolean afterClass) throws Exception {
if (afterClass) {
MockPageCacheRecycler.ensureAllPagesAreReleased();
StrictCheckSpanProcessor.validateTracingStateOnShutdown();
}
MockBigArrays.ensureAllArraysAreReleased();

Expand Down

0 comments on commit df58f96

Please sign in to comment.