File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
server/src/main/java/org/elasticsearch/action/datastreams Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -211,9 +211,9 @@ public enum ManagedBy {
211211
212212 public static final ParseField DATA_STREAMS_FIELD = new ParseField ("data_streams" );
213213
214- private static final TransportVersion INTRODUCE_FAILURES_DEFAULT_RETENTION = TransportVersion .fromName (
214+ private static final TransportVersion INTRODUCE_FAILURES_DEFAULT_RETENTION_PATCH = TransportVersion .fromName (
215215 "introduce_failures_default_retention"
216- );
216+ ). nextPatchVersion () ;
217217 private static final TransportVersion INCLUDE_INDEX_MODE_IN_GET_DATA_STREAM = TransportVersion .fromName (
218218 "include_index_mode_in_get_data_stream"
219219 );
@@ -669,7 +669,7 @@ public void writeTo(StreamOutput out) throws IOException {
669669 out .writeOptionalWriteable (rolloverConfiguration );
670670 }
671671 // A version 9.x cluster will never read this, so we only need to include the patch version here.
672- if (out .getTransportVersion ().supports (INTRODUCE_FAILURES_DEFAULT_RETENTION )) {
672+ if (out .getTransportVersion ().supports (INTRODUCE_FAILURES_DEFAULT_RETENTION_PATCH )) {
673673 out .writeOptionalTimeValue (dataGlobalRetention == null ? null : dataGlobalRetention .defaultRetention ());
674674 out .writeOptionalTimeValue (dataGlobalRetention == null ? null : dataGlobalRetention .maxRetention ());
675675 out .writeOptionalTimeValue (failuresGlobalRetention == null ? null : failuresGlobalRetention .defaultRetention ());
You can’t perform that action at this time.
0 commit comments