Skip to content

Commit 9ee67a2

Browse files
committed
Merge remote-tracking branch 'upstream/main' into include-default-index-sort
2 parents 7a9dec4 + 305a1d7 commit 9ee67a2

File tree

43 files changed

+1561
-538
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1561
-538
lines changed

modules/ingest-common/src/main/java/org/elasticsearch/ingest/common/GrokProcessorGetAction.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
*/
99
package org.elasticsearch.ingest.common;
1010

11-
import org.elasticsearch.TransportVersions;
1211
import org.elasticsearch.action.ActionListener;
1312
import org.elasticsearch.action.ActionRequestValidationException;
1413
import org.elasticsearch.action.ActionResponse;
@@ -60,9 +59,7 @@ public Request(boolean sorted, String ecsCompatibility) {
6059
Request(StreamInput in) throws IOException {
6160
super(in);
6261
this.sorted = in.readBoolean();
63-
this.ecsCompatibility = in.getTransportVersion().onOrAfter(TransportVersions.V_8_0_0)
64-
? in.readString()
65-
: GrokProcessor.DEFAULT_ECS_COMPATIBILITY_MODE;
62+
this.ecsCompatibility = in.readString();
6663
}
6764

6865
@Override
@@ -74,9 +71,7 @@ public ActionRequestValidationException validate() {
7471
public void writeTo(StreamOutput out) throws IOException {
7572
super.writeTo(out);
7673
out.writeBoolean(sorted);
77-
if (out.getTransportVersion().onOrAfter(TransportVersions.V_8_0_0)) {
78-
out.writeString(ecsCompatibility);
79-
}
74+
out.writeString(ecsCompatibility);
8075
}
8176

8277
public boolean sorted() {

modules/ingest-geoip/src/main/java/org/elasticsearch/ingest/geoip/stats/GeoIpStatsAction.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,7 @@ protected NodeResponse(StreamInput in) throws IOException {
174174
}
175175
databases = in.readCollectionAsImmutableSet(StreamInput::readString);
176176
filesInTemp = in.readCollectionAsImmutableSet(StreamInput::readString);
177-
configDatabases = in.getTransportVersion().onOrAfter(TransportVersions.V_8_0_0)
178-
? in.readCollectionAsImmutableSet(StreamInput::readString)
179-
: null;
177+
configDatabases = in.readCollectionAsImmutableSet(StreamInput::readString);
180178
}
181179

182180
protected NodeResponse(
@@ -226,9 +224,7 @@ public void writeTo(StreamOutput out) throws IOException {
226224
}
227225
out.writeStringCollection(databases);
228226
out.writeStringCollection(filesInTemp);
229-
if (out.getTransportVersion().onOrAfter(TransportVersions.V_8_0_0)) {
230-
out.writeStringCollection(configDatabases);
231-
}
227+
out.writeStringCollection(configDatabases);
232228
}
233229

234230
@Override

modules/percolator/src/main/java/org/elasticsearch/percolator/PercolateQueryBuilder.java

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
import org.elasticsearch.ElasticsearchException;
3636
import org.elasticsearch.ResourceNotFoundException;
3737
import org.elasticsearch.TransportVersion;
38-
import org.elasticsearch.TransportVersions;
3938
import org.elasticsearch.action.get.GetRequest;
4039
import org.elasticsearch.common.bytes.BytesReference;
4140
import org.elasticsearch.common.io.stream.InputStreamStreamInput;
@@ -206,15 +205,7 @@ protected PercolateQueryBuilder(String field, Supplier<BytesReference> documentS
206205
super(in);
207206
field = in.readString();
208207
name = in.readOptionalString();
209-
if (in.getTransportVersion().before(TransportVersions.V_8_0_0)) {
210-
String documentType = in.readOptionalString();
211-
assert documentType == null;
212-
}
213208
indexedDocumentIndex = in.readOptionalString();
214-
if (in.getTransportVersion().before(TransportVersions.V_8_0_0)) {
215-
String indexedDocumentType = in.readOptionalString();
216-
assert indexedDocumentType == null;
217-
}
218209
indexedDocumentId = in.readOptionalString();
219210
indexedDocumentRouting = in.readOptionalString();
220211
indexedDocumentPreference = in.readOptionalString();
@@ -248,15 +239,7 @@ protected void doWriteTo(StreamOutput out) throws IOException {
248239
}
249240
out.writeString(field);
250241
out.writeOptionalString(name);
251-
if (out.getTransportVersion().before(TransportVersions.V_8_0_0)) {
252-
// In 7x, typeless percolate queries are represented by null documentType values
253-
out.writeOptionalString(null);
254-
}
255242
out.writeOptionalString(indexedDocumentIndex);
256-
if (out.getTransportVersion().before(TransportVersions.V_8_0_0)) {
257-
// In 7x, typeless percolate queries are represented by null indexedDocumentType values
258-
out.writeOptionalString(null);
259-
}
260243
out.writeOptionalString(indexedDocumentId);
261244
out.writeOptionalString(indexedDocumentRouting);
262245
out.writeOptionalString(indexedDocumentPreference);

muted-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,9 @@ tests:
612612
- class: org.elasticsearch.xpack.esql.expression.function.aggregate.IrateTests
613613
method: testGroupingAggregate {TestCase=<positive longs>}
614614
issue: https://github.com/elastic/elasticsearch/issues/135775
615+
- class: org.elasticsearch.xpack.esql.qa.single_node.GenerativeIT
616+
method: test
617+
issue: https://github.com/elastic/elasticsearch/issues/135787
615618

616619
# Examples:
617620
#

0 commit comments

Comments
 (0)