From ccf3ac9c828ee32380e5a9bedf934ad189c7ee10 Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Mon, 6 Feb 2017 16:48:44 +0100 Subject: [PATCH] fix compilation issue caused by https://github.com/elastic/elasticsearch/pull/22984 Original commit: elastic/x-pack-elasticsearch@6e4d902deb5e5812044ea55d1d4c1191345480c7 --- .../action/TransportMonitoringBulkActionTests.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/elasticsearch/src/test/java/org/elasticsearch/xpack/monitoring/action/TransportMonitoringBulkActionTests.java b/elasticsearch/src/test/java/org/elasticsearch/xpack/monitoring/action/TransportMonitoringBulkActionTests.java index 69329b631bf..4f4e21b0006 100644 --- a/elasticsearch/src/test/java/org/elasticsearch/xpack/monitoring/action/TransportMonitoringBulkActionTests.java +++ b/elasticsearch/src/test/java/org/elasticsearch/xpack/monitoring/action/TransportMonitoringBulkActionTests.java @@ -15,6 +15,7 @@ import org.elasticsearch.cluster.NodeConnectionsService; import org.elasticsearch.cluster.block.ClusterBlocks; import org.elasticsearch.cluster.metadata.IndexNameExpressionResolver; import org.elasticsearch.cluster.node.DiscoveryNode; +import org.elasticsearch.cluster.node.DiscoveryNodes; import org.elasticsearch.cluster.service.ClusterService; import org.elasticsearch.common.settings.ClusterSettings; import org.elasticsearch.common.settings.Setting; @@ -99,12 +100,12 @@ public class TransportMonitoringBulkActionTests extends ESTestCase { new ClusterSettings(Settings.EMPTY, clusterSettings), threadPool, () -> node); clusterService.setNodeConnectionsService(new NodeConnectionsService(Settings.EMPTY, null, null) { @Override - public void connectToNodes(Iterable discoveryNodes) { + public void connectToNodes(DiscoveryNodes discoveryNodes) { // skip } @Override - public void disconnectFromNodesExcept(Iterable nodesToKeep) { + public void disconnectFromNodesExcept(DiscoveryNodes nodesToKeep) { // skip } });