-
Notifications
You must be signed in to change notification settings - Fork 25.4k
Fix a master->7.x serialization bug #54429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
`master` wasn't sending `auto_date_histogram`'s `minimumIntervalExpression` over the wire to `7.x` nodes even though everything above `7.3` expected it. We never noticed this because we didn't have any yml tests for `auto_date_histogram` until I added some in elastic#54161. Closes elastic#54396
Pinging @elastic/es-analytics-geo (:Analytics/Aggregations) |
I've labeled this |
@@ -110,20 +110,6 @@ | |||
|
|||
private String minimumIntervalExpression; | |||
|
|||
public String getMinimumIntervalExpression() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm moving these below the ctor to make me feel better.
@@ -138,6 +124,14 @@ public AutoDateHistogramAggregationBuilder(StreamInput in) throws IOException { | |||
} | |||
} | |||
|
|||
@Override |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm moving this up under the reading ctor so it is easier to compare.
@Override | ||
protected void innerWriteTo(StreamOutput out) throws IOException { | ||
out.writeVInt(numBuckets); | ||
if (out.getVersion().onOrAfter(Version.V_7_3_0)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changing this from 8_0_0
to 7_3_0
is the actual fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very nice catch!
This fixes a serialization bug in `auto_date_histogram` that comes up in a cluster mixed between pre-7.3.0 and post-7.3.0. Includes elastic#54429 to keep 7.x looking like master for simpler backports. Closes elastic#54382
master
wasn't sendingauto_date_histogram
'sminimumIntervalExpression
over the wire to7.x
nodes even thougheverything above
7.3
expected it. We never noticed this because wedidn't have any yml tests for
auto_date_histogram
until I added somein #54161.
Closes #54396