Skip to content

Deprecate serializing PipelineAggregators (backport of #54926)#55025

Merged
nik9000 merged 1 commit intoelastic:7.xfrom
nik9000:pipeline_drop_dep_7_x
Apr 9, 2020
Merged

Deprecate serializing PipelineAggregators (backport of #54926)#55025
nik9000 merged 1 commit intoelastic:7.xfrom
nik9000:pipeline_drop_dep_7_x

Conversation

@nik9000
Copy link
Copy Markdown
Member

@nik9000 nik9000 commented Apr 9, 2020

PipelineAggregators are only sent across the wire for backwards
compatibility with 7.7.0. PipelineAggregator needs to continue to
implement NamedWriteable for backwards compatibility but pipeline
aggregations created after 7.7.0 need not implement any of the methods
in that interface because we'll never attempt to call them. So this
creates implementations in PipelineAggregator (the base class) that
just throw exceptions.

`PipelineAggregator`s are only sent across the wire for backwards
compatibility with 7.7.0. `PipelineAggregator` needs to continue to
implement `NamedWriteable` for backwards compatibility but pipeline
aggregations created after 7.7.0 need not implement any of the methods
in that interface because we'll never attempt to call them. So this
creates implementations in `PipelineAggregator` (the base class) that
just throw exceptions.
@nik9000 nik9000 merged commit 83c328f into elastic:7.x Apr 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant