Skip to content

Commit b189625

Browse files
authored
Merge branch 'main' into entitlements/fix-policy-parser-paths-windows
2 parents 2a65869 + 4908c92 commit b189625

File tree

5 files changed

+9
-13
lines changed

5 files changed

+9
-13
lines changed

.buildkite/pipelines/intake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ steps:
7676
ES_VERSION:
7777
- "9.0.0"
7878
ES_COMMIT:
79-
- "b2cc9d9b8f00ee621f93ddca07ea9c671aab1578" # update to match last commit before lucene bump
79+
- "10352e57d85505984582616e1e38530d3ec6ca59" # update to match last commit before lucene bump / head of combat-lucene-10-0-0
8080
agents:
8181
provider: gcp
8282
image: family/elasticsearch-ubuntu-2004

modules/reindex/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,7 @@ if (OS.current() == OS.WINDOWS) {
167167
}
168168
}
169169
}
170+
171+
tasks.named("yamlRestCompatTestTransform").configure { task ->
172+
task.skipTest("reindex/20_validation/specifying size fails", "size is rejected in 9.0")
173+
}

modules/reindex/src/yamlRestTest/resources/rest-api-spec/test/reindex/20_validation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
body: { "text": "test" }
108108

109109
- do:
110-
catch: /invalid parameter \[size\], use \[max_docs\] instead/
110+
catch: /(invalid parameter \[size\], use \[max_docs\] instead|unknown field \[size\])/
111111
reindex:
112112
body:
113113
source:

muted-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,9 @@ tests:
394394
issue: https://github.com/elastic/elasticsearch/issues/122680
395395
- class: org.elasticsearch.entitlement.qa.EntitlementsDeniedIT
396396
issue: https://github.com/elastic/elasticsearch/issues/122566
397+
- class: org.elasticsearch.repositories.blobstore.testkit.analyze.S3RepositoryAnalysisRestIT
398+
method: testRepositoryAnalysis
399+
issue: https://github.com/elastic/elasticsearch/issues/122799
397400

398401
# Examples:
399402
#

server/src/main/java/org/elasticsearch/index/reindex/ReindexRequest.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import org.elasticsearch.common.settings.SecureString;
2222
import org.elasticsearch.common.xcontent.XContentHelper;
2323
import org.elasticsearch.core.TimeValue;
24-
import org.elasticsearch.core.UpdateForV9;
2524
import org.elasticsearch.features.NodeFeature;
2625
import org.elasticsearch.index.VersionType;
2726
import org.elasticsearch.index.query.QueryBuilder;
@@ -355,10 +354,6 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
355354
);
356355

357356
PARSER.declareInt(ReindexRequest::setMaxDocsValidateIdentical, new ParseField("max_docs"));
358-
359-
// avoid silently accepting an ignored size.
360-
PARSER.declareInt((r, s) -> failOnSizeSpecified(), new ParseField("size"));
361-
362357
PARSER.declareField((p, v, c) -> v.setScript(Script.parse(p)), new ParseField("script"), ObjectParser.ValueType.OBJECT);
363358
PARSER.declareString(ReindexRequest::setConflicts, new ParseField("conflicts"));
364359
}
@@ -498,10 +493,4 @@ static void setMaxDocsValidateIdentical(AbstractBulkByScrollRequest<?> request,
498493
request.setMaxDocs(maxDocs);
499494
}
500495
}
501-
502-
@UpdateForV9(owner = UpdateForV9.Owner.DISTRIBUTED_INDEXING)
503-
// do we still need this ref to [max_docs] or can we remove the field entirely so it's rejected with the default message?
504-
private static void failOnSizeSpecified() {
505-
throw new IllegalArgumentException("invalid parameter [size], use [max_docs] instead");
506-
}
507496
}

0 commit comments

Comments
 (0)