Skip to content
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 @@ -321,7 +321,6 @@ static TransportVersion def(int id) {
public static final TransportVersion ML_INFERENCE_ELASTIC_DENSE_TEXT_EMBEDDINGS_ADDED = def(9_109_00_0);
public static final TransportVersion ML_INFERENCE_COHERE_API_VERSION = def(9_110_0_00);
public static final TransportVersion ESQL_PROFILE_INCLUDE_PLAN = def(9_111_0_00);
public static final TransportVersion MAPPINGS_IN_DATA_STREAMS = def(9_112_0_00);
public static final TransportVersion INITIAL_ELASTICSEARCH_9_1_4 = def(9_112_0_07);

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ public final class DataStream implements SimpleDiffable<DataStream>, ToXContentO

private static final Logger LOGGER = LogManager.getLogger(DataStream.class);

private static final TransportVersion MAPPINGS_IN_DATA_STREAMS = TransportVersion.fromName("mappings_in_data_streams");

public static final NodeFeature DATA_STREAM_FAILURE_STORE_FEATURE = new NodeFeature("data_stream.failure_store");
public static final boolean LOGS_STREAM_FEATURE_FLAG = new FeatureFlag("logs_stream").isEnabled();
public static final TransportVersion ADDED_FAILURE_STORE_TRANSPORT_VERSION = TransportVersions.V_8_12_0;
Expand Down Expand Up @@ -311,7 +313,7 @@ public static DataStream read(StreamInput in) throws IOException {
settings = Settings.EMPTY;
}
CompressedXContent mappings;
if (in.getTransportVersion().onOrAfter(TransportVersions.MAPPINGS_IN_DATA_STREAMS)) {
if (in.getTransportVersion().supports(MAPPINGS_IN_DATA_STREAMS)) {
mappings = CompressedXContent.readCompressedString(in);
} else {
mappings = EMPTY_MAPPINGS;
Expand Down Expand Up @@ -1393,7 +1395,7 @@ public void writeTo(StreamOutput out) throws IOException {
|| out.getTransportVersion().isPatchFrom(TransportVersions.SETTINGS_IN_DATA_STREAMS_8_19)) {
settings.writeTo(out);
}
if (out.getTransportVersion().onOrAfter(TransportVersions.MAPPINGS_IN_DATA_STREAMS)) {
if (out.getTransportVersion().supports(MAPPINGS_IN_DATA_STREAMS)) {
mappings.writeTo(out);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9112000