From 87e84bf9e117f9b9920a0800ae161a4aee7213c6 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Thu, 7 Jul 2016 17:06:07 -0400 Subject: [PATCH] Handle core's cleanup of terms aggregation Original commit: elastic/x-pack-elasticsearch@c764d118675ff3459cd2074edc06851802fd73f6 --- .../monitoring/agent/resolver/node/MultiNodesStatsTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch/x-pack/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/agent/resolver/node/MultiNodesStatsTests.java b/elasticsearch/x-pack/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/agent/resolver/node/MultiNodesStatsTests.java index c5002592bf8..c08af158d9b 100644 --- a/elasticsearch/x-pack/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/agent/resolver/node/MultiNodesStatsTests.java +++ b/elasticsearch/x-pack/monitoring/src/test/java/org/elasticsearch/xpack/monitoring/agent/resolver/node/MultiNodesStatsTests.java @@ -102,7 +102,7 @@ public class MultiNodesStatsTests extends MonitoringIntegTestCase { assertThat(((StringTerms) aggregation).getBuckets().size(), equalTo(nbNodes)); for (String nodeName : internalCluster().getNodeNames()) { - StringTerms.Bucket bucket = (StringTerms.Bucket) ((StringTerms) aggregation) + StringTerms.Bucket bucket = ((StringTerms) aggregation) .getBucketByKey(internalCluster().clusterService(nodeName).localNode().getId()); // At least 1 doc must exist per node, but it can be more than 1 // because the first node may have already collected many node stats documents