Skip to content

Commit 0180db0

Browse files
committed
Fix BWC error on pipeline aggs
I derped out on a last minute bug fix when backporting elastic#54282 and it only causes the tests to fail about half the time. So I didn't catch it until after merging. Great! This fixes it.
1 parent 20d6772 commit 0180db0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/search/aggregations/InternalAggregations.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
import org.elasticsearch.common.io.stream.Writeable;
2525
import org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext;
2626
import org.elasticsearch.search.aggregations.pipeline.PipelineAggregator;
27-
import org.elasticsearch.search.aggregations.pipeline.SiblingPipelineAggregator;
2827
import org.elasticsearch.search.aggregations.pipeline.PipelineAggregator.PipelineTree;
28+
import org.elasticsearch.search.aggregations.pipeline.SiblingPipelineAggregator;
2929
import org.elasticsearch.search.aggregations.support.AggregationPath;
3030

3131
import java.io.IOException;
@@ -114,7 +114,7 @@ public void writeTo(StreamOutput out) throws IOException {
114114
mergePipelineTreeForBWCSerialization(pipelineTree);
115115
out.writeNamedWriteableList(getInternalAggregations());
116116
if (out.getVersion().onOrAfter(Version.V_6_7_0)) {
117-
out.writeNamedWriteableList(emptyList());
117+
out.writeNamedWriteableList(pipelineTree.aggregators());
118118
}
119119
}
120120
} else {

0 commit comments

Comments
 (0)