Skip to content

Commit 7154255

Browse files
TESTS: Enable DEBUG Logging in Flaky Test (#34091)
* This should surface what errors are thrown on CI and in org.elasticsearch.transport.RemoteClusterConnection.ConnectHandler#collectRemoteNodes (the sequence of caught error in the last catch block and moving on to the next seed node seems to be the only path by which the errors logged in #33756 could come about) * Relates #33756
1 parent 32c61e1 commit 7154255

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

server/src/test/java/org/elasticsearch/transport/RemoteClusterConnectionTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
import org.elasticsearch.mocksocket.MockServerSocket;
6161
import org.elasticsearch.test.ESTestCase;
6262
import org.elasticsearch.test.VersionUtils;
63+
import org.elasticsearch.test.junit.annotations.TestLogging;
6364
import org.elasticsearch.test.transport.MockTransportService;
6465
import org.elasticsearch.test.transport.StubbableTransport;
6566
import org.elasticsearch.threadpool.TestThreadPool;
@@ -824,6 +825,7 @@ public void run() {
824825
}
825826
}
826827

828+
@TestLogging("_root:DEBUG, org.elasticsearch.transport:TRACE")
827829
public void testCloseWhileConcurrentlyConnecting() throws IOException, InterruptedException, BrokenBarrierException {
828830
List<DiscoveryNode> knownNodes = new CopyOnWriteArrayList<>();
829831
try (MockTransportService seedTransport = startTransport("seed_node", knownNodes, Version.CURRENT);

0 commit comments

Comments
 (0)