From 7d0dbd2082c3f9aac9ddd64f5ec75a8b22527e51 Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Thu, 22 Dec 2016 18:10:15 +0100 Subject: [PATCH] add trace logging to UnicastZenPingTests.testResolveReuseExistingNodeConnections --- .../org/elasticsearch/discovery/zen/UnicastZenPingTests.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/test/java/org/elasticsearch/discovery/zen/UnicastZenPingTests.java b/core/src/test/java/org/elasticsearch/discovery/zen/UnicastZenPingTests.java index 64d62336dd9..db81956865a 100644 --- a/core/src/test/java/org/elasticsearch/discovery/zen/UnicastZenPingTests.java +++ b/core/src/test/java/org/elasticsearch/discovery/zen/UnicastZenPingTests.java @@ -41,6 +41,7 @@ import org.elasticsearch.common.util.concurrent.EsExecutors; import org.elasticsearch.indices.breaker.NoneCircuitBreakerService; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.VersionUtils; +import org.elasticsearch.test.junit.annotations.TestLogging; import org.elasticsearch.test.transport.MockTransportService; import org.elasticsearch.threadpool.TestThreadPool; import org.elasticsearch.threadpool.ThreadPool; @@ -115,6 +116,7 @@ public class UnicastZenPingTests extends ESTestCase { @After public void tearDown() throws Exception { try { + logger.info("shutting down..."); // JDK stack is broken, it does not iterate in the expected order (http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4475301) final List reverse = new ArrayList<>(); while (!closeables.isEmpty()) { @@ -538,6 +540,7 @@ public class UnicastZenPingTests extends ESTestCase { } } + @TestLogging("org.elasticsearch:DEBUG,org.elasticsearch.discovery:TRACE,org.elasticsearch.transport:TRACE") public void testResolveReuseExistingNodeConnections() throws ExecutionException, InterruptedException { final Settings settings = Settings.builder().put("cluster.name", "test").put(TransportSettings.PORT.getKey(), 0).build();