Remove DiscoveryNodes#masterNodeId in favour of existing DiscoveryNodes#getMasterNodeId
Original commit: elastic/x-pack-elasticsearch@acbedb87fd
This commit is contained in:
parent
be01a18b35
commit
716a3e743e
|
@ -100,7 +100,7 @@ public class ClusterStateTests extends MarvelIntegTestCase {
|
||||||
logger.debug("--> ensure that the 'nodes' attributes of the cluster state document is not indexed");
|
logger.debug("--> ensure that the 'nodes' attributes of the cluster state document is not indexed");
|
||||||
assertHitCount(client().prepareSearch().setSize(0)
|
assertHitCount(client().prepareSearch().setSize(0)
|
||||||
.setTypes(ClusterStateResolver.TYPE)
|
.setTypes(ClusterStateResolver.TYPE)
|
||||||
.setQuery(matchQuery("cluster_state.nodes." + nodes.masterNodeId() + ".name", nodes.masterNode().getName())).get(), 0L);
|
.setQuery(matchQuery("cluster_state.nodes." + nodes.getMasterNodeId() + ".name", nodes.masterNode().getName())).get(), 0L);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testClusterStateNodes() throws Exception {
|
public void testClusterStateNodes() throws Exception {
|
||||||
|
|
Loading…
Reference in New Issue