Skip to content

Commit 6f5b478

Browse files
authored
[8.19] Migrate transport versions 8841_052 through 8841_062 (#135328) (#135482)
Backports the following commits to 8.19: - Migrate transport versions 8841_052 through 8841_062 (#135328)
1 parent 6f9874e commit 6f5b478

File tree

29 files changed

+99
-64
lines changed

29 files changed

+99
-64
lines changed

server/src/main/java/org/elasticsearch/TransportVersions.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -232,17 +232,6 @@ static TransportVersion def(int id) {
232232
public static final TransportVersion NONE_CHUNKING_STRATEGY_8_19 = def(8_841_0_49);
233233
public static final TransportVersion IDP_CUSTOM_SAML_ATTRIBUTES_ALLOW_LIST_8_19 = def(8_841_0_50);
234234
public static final TransportVersion SETTINGS_IN_DATA_STREAMS_8_19 = def(8_841_0_51);
235-
public static final TransportVersion ML_INFERENCE_CUSTOM_SERVICE_REMOVE_ERROR_PARSING_8_19 = def(8_841_0_52);
236-
public static final TransportVersion ML_INFERENCE_CUSTOM_SERVICE_EMBEDDING_BATCH_SIZE_8_19 = def(8_841_0_53);
237-
public static final TransportVersion STREAMS_LOGS_SUPPORT_8_19 = def(8_841_0_54);
238-
public static final TransportVersion ML_INFERENCE_CUSTOM_SERVICE_INPUT_TYPE_8_19 = def(8_841_0_55);
239-
public static final TransportVersion RANDOM_SAMPLER_QUERY_BUILDER_8_19 = def(8_841_0_56);
240-
public static final TransportVersion ML_INFERENCE_SAGEMAKER_ELASTIC_8_19 = def(8_841_0_57);
241-
public static final TransportVersion SPARSE_VECTOR_FIELD_PRUNING_OPTIONS_8_19 = def(8_841_0_58);
242-
public static final TransportVersion ML_INFERENCE_ELASTIC_DENSE_TEXT_EMBEDDINGS_ADDED_8_19 = def(8_841_0_59);
243-
public static final TransportVersion ML_INFERENCE_COHERE_API_VERSION_8_19 = def(8_841_0_60);
244-
public static final TransportVersion ESQL_DOCUMENTS_FOUND_AND_VALUES_LOADED_8_19 = def(8_841_0_61);
245-
public static final TransportVersion ESQL_PROFILE_INCLUDE_PLAN_8_19 = def(8_841_0_62);
246235

247236
/*
248237
* STOP! READ THIS FIRST! No, really,

server/src/main/java/org/elasticsearch/cluster/metadata/StreamsMetadata.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
package org.elasticsearch.cluster.metadata;
1111

1212
import org.elasticsearch.TransportVersion;
13-
import org.elasticsearch.TransportVersions;
1413
import org.elasticsearch.cluster.AbstractNamedDiffable;
1514
import org.elasticsearch.cluster.NamedDiff;
1615
import org.elasticsearch.common.collect.Iterators;
@@ -43,6 +42,7 @@ public class StreamsMetadata extends AbstractNamedDiffable<Metadata.Custom> impl
4342
static {
4443
PARSER.declareBoolean(ConstructingObjectParser.constructorArg(), LOGS_ENABLED);
4544
}
45+
private static final TransportVersion STREAMS_LOGS_SUPPORT = TransportVersion.fromName("streams_logs_support");
4646

4747
public boolean logsEnabled;
4848

@@ -70,11 +70,7 @@ public String getWriteableName() {
7070

7171
@Override
7272
public TransportVersion getMinimalSupportedVersion() {
73-
// While technically the version returned here is correct, in reality this code
74-
// was backported from 9.1 to 8.19 and isn't compatible with 9.0 but as we don't
75-
// support migrating from 8.19 to 9.0, we can safely return this version rather than
76-
// modifying many classes down stream.
77-
return TransportVersions.STREAMS_LOGS_SUPPORT_8_19;
73+
return STREAMS_LOGS_SUPPORT;
7874
}
7975

8076
public static NamedDiff<Metadata.Custom> readDiffFrom(StreamInput in) throws IOException {

server/src/main/java/org/elasticsearch/search/aggregations/bucket/sampler/random/RandomSamplingQueryBuilder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import org.apache.lucene.search.Query;
1313
import org.elasticsearch.TransportVersion;
14-
import org.elasticsearch.TransportVersions;
1514
import org.elasticsearch.common.Randomness;
1615
import org.elasticsearch.common.io.stream.StreamInput;
1716
import org.elasticsearch.common.io.stream.StreamOutput;
@@ -36,6 +35,8 @@ public class RandomSamplingQueryBuilder extends AbstractQueryBuilder<RandomSampl
3635
static final ParseField SEED = new ParseField("seed");
3736
static final ParseField HASH = new ParseField("hash");
3837

38+
private static final TransportVersion RANDOM_SAMPLER_QUERY_BUILDER = TransportVersion.fromName("random_sampler_query_builder");
39+
3940
private final double probability;
4041
private int seed = Randomness.get().nextInt();
4142
private int hash = 0;
@@ -144,6 +145,6 @@ public String getWriteableName() {
144145
*/
145146
@Override
146147
public TransportVersion getMinimalSupportedVersion() {
147-
return TransportVersions.RANDOM_SAMPLER_QUERY_BUILDER_8_19;
148+
return RANDOM_SAMPLER_QUERY_BUILDER;
148149
}
149150
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9056000,8841061
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9111000,8841062
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9110000,8841060
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9103000,8841053
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9105000,8841055
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9102000,8841052
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
9109000,8841059

0 commit comments

Comments
 (0)