Remote assertion that relies on all shards being successful

The assertion that if there are buffered aggs at least one incremental
reduce phase should have happened doens't hold if there are shard failure.
This commit removes this assertion.

Relates to #23288
This commit is contained in:
Simon Willnauer 2017-02-21 22:41:49 +01:00
parent 81d53470e7
commit ca38e88148
1 changed files with 0 additions and 1 deletions

View File

@ -497,7 +497,6 @@ public class SearchPhaseController extends AbstractComponent {
final List<InternalAggregations> aggregationsList;
if (bufferdAggs != null) {
consumeAggs = false;
assert numReducePhases > 1 : "num reduce phases must be > 1 but was: " + numReducePhases;
// we already have results from intermediate reduces and just need to perform the final reduce
assert firstResult.hasAggs() : "firstResult has no aggs but we got non null buffered aggs?";
aggregationsList = bufferdAggs;