Skip to content

Commit acd80a1

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 ea9b335 commit acd80a1

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
@@ -53,6 +53,7 @@
5353
import org.elasticsearch.mocksocket.MockServerSocket;
5454
import org.elasticsearch.test.ESTestCase;
5555
import org.elasticsearch.test.VersionUtils;
56+
import org.elasticsearch.test.junit.annotations.TestLogging;
5657
import org.elasticsearch.test.transport.MockTransportService;
5758
import org.elasticsearch.test.transport.StubbableTransport;
5859
import org.elasticsearch.threadpool.TestThreadPool;
@@ -834,6 +835,7 @@ public void run() {
834835
}
835836
}
836837

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

0 commit comments

Comments
 (0)