ML: Adjusing BWC version post backport to 6.6 (#35605)
This commit is contained in:
parent
797cffbb68
commit
e360c600d0
|
@ -202,7 +202,7 @@ public class DatafeedConfig extends AbstractDiffable<DatafeedConfig> implements
|
|||
} else {
|
||||
this.headers = Collections.emptyMap();
|
||||
}
|
||||
if (in.getVersion().onOrAfter(Version.CURRENT)) {
|
||||
if (in.getVersion().onOrAfter(Version.V_6_6_0)) {
|
||||
delayedDataCheckConfig = in.readOptionalWriteable(DelayedDataCheckConfig::new);
|
||||
} else {
|
||||
delayedDataCheckConfig = DelayedDataCheckConfig.defaultDelayedDataCheckConfig();
|
||||
|
@ -306,7 +306,7 @@ public class DatafeedConfig extends AbstractDiffable<DatafeedConfig> implements
|
|||
if (out.getVersion().onOrAfter(Version.V_6_2_0)) {
|
||||
out.writeMap(headers, StreamOutput::writeString, StreamOutput::writeString);
|
||||
}
|
||||
if (out.getVersion().onOrAfter(Version.CURRENT)) {
|
||||
if (out.getVersion().onOrAfter(Version.V_6_6_0)) {
|
||||
out.writeOptionalWriteable(delayedDataCheckConfig);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -128,7 +128,7 @@ public class DatafeedUpdate implements Writeable, ToXContentObject {
|
|||
}
|
||||
this.scrollSize = in.readOptionalVInt();
|
||||
this.chunkingConfig = in.readOptionalWriteable(ChunkingConfig::new);
|
||||
if (in.getVersion().onOrAfter(Version.CURRENT)) {
|
||||
if (in.getVersion().onOrAfter(Version.V_6_6_0)) {
|
||||
delayedDataCheckConfig = in.readOptionalWriteable(DelayedDataCheckConfig::new);
|
||||
} else {
|
||||
delayedDataCheckConfig = null;
|
||||
|
@ -170,7 +170,7 @@ public class DatafeedUpdate implements Writeable, ToXContentObject {
|
|||
}
|
||||
out.writeOptionalVInt(scrollSize);
|
||||
out.writeOptionalWriteable(chunkingConfig);
|
||||
if (out.getVersion().onOrAfter(Version.CURRENT)) {
|
||||
if (out.getVersion().onOrAfter(Version.V_6_6_0)) {
|
||||
out.writeOptionalWriteable(delayedDataCheckConfig);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue