Skip to content
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

[Transform] Set version to 7.15 in serialization code #76577

Merged
merged 1 commit into from
Aug 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public SettingsConfig(final StreamInput in) throws IOException {
} else {
this.datesAsEpochMillis = DEFAULT_DATES_AS_EPOCH_MILLIS;
}
if (in.getVersion().onOrAfter(Version.CURRENT)) { // TODO: 7.15
if (in.getVersion().onOrAfter(Version.V_7_15_0)) {
this.interimResults = in.readOptionalInt();
} else {
this.interimResults = DEFAULT_INTERIM_RESULTS;
Expand Down Expand Up @@ -146,7 +146,7 @@ public void writeTo(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_7_11_0)) {
out.writeOptionalInt(datesAsEpochMillis);
}
if (out.getVersion().onOrAfter(Version.CURRENT)) { // TODO: 7.15
if (out.getVersion().onOrAfter(Version.V_7_15_0)) {
out.writeOptionalInt(interimResults);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ private static TransformConfig applyRewriteForUpdate(Builder builder) {
}

// 3. set interim_results to true for transforms < 7.15 to keep BWC
if (builder.getVersion() != null && builder.getVersion().before(Version.CURRENT)) { // TODO: 7.15
if (builder.getVersion() != null && builder.getVersion().before(Version.V_7_15_0)) {
builder.setSettings(
new SettingsConfig(
builder.getSettings().getMaxPageSearchSize(),
Expand Down