[Test] Additional logging for RemoteClusterClientTests (#44124)

This commit is contained in:
Christoph Büscher 2019-07-10 22:41:18 +02:00
parent d6f09fdb97
commit cbb19032df
1 changed files with 3 additions and 0 deletions

View File

@ -55,7 +55,10 @@ public class RemoteClusterClientTests extends ESTestCase {
.put("cluster.remote.test.seeds", remoteNode.getAddress().getAddress() + ":" + remoteNode.getAddress().getPort()).build();
try (MockTransportService service = MockTransportService.createNewService(localSettings, Version.CURRENT, threadPool, null)) {
service.start();
// following two log lines added to investigate #41745, can be removed once issue is closed
logger.info("Start accepting incoming requests on local transport service");
service.acceptIncomingRequests();
logger.info("now accepting incoming requests on local transport");
RemoteClusterService remoteClusterService = service.getRemoteClusterService();
assertTrue(remoteClusterService.isRemoteNodeConnected("test", remoteNode));
Client client = remoteClusterService.getRemoteClusterClient(threadPool, "test");