Skip to content

Commit 8720d28

Browse files
committed
Merge branch 'main' into feature/knn-vector-rescore-query
2 parents a256de9 + d5589d7 commit 8720d28

File tree

83 files changed

+6070
-3965
lines changed

Some content is hidden

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

83 files changed

+6070
-3965
lines changed

docs/changelog/114618.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 114618
2+
summary: Add a new index setting to skip recovery source when synthetic source is enabled
3+
area: Logs
4+
type: enhancement
5+
issues: []

docs/changelog/117469.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pr: 117469
2+
summary: Handle exceptions in query phase can match
3+
area: Search
4+
type: bug
5+
issues:
6+
- 104994

docs/changelog/118354.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 118354
2+
summary: Fix log message format bugs
3+
area: Ingest Node
4+
type: bug
5+
issues: []

docs/changelog/118378.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 118378
2+
summary: Opt into extra data stream resolution
3+
area: ES|QL
4+
type: bug
5+
issues: []

docs/plugins/analysis-nori.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ The input is untokenized text and the result is the single term attribute emitte
475475
- 영영칠 -> 7
476476
- 일영영영 -> 1000
477477
- 삼천2백2십삼 -> 3223
478-
- 조육백만오천일 -> 1000006005001
478+
- 일조육백만오천일 -> 1000006005001
479479
- 3.2천 -> 3200
480480
- 1.2만345.67 -> 12345.67
481481
- 4,647.100 -> 4647.1

modules/repository-s3/src/main/java/org/elasticsearch/repositories/s3/S3BlobContainer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,7 @@ public void onResponse(Void unused) {
10251025
// should be no other processes interacting with the repository.
10261026
logger.warn(
10271027
Strings.format(
1028-
"failed to clean up multipart upload [{}] of blob [{}][{}][{}]",
1028+
"failed to clean up multipart upload [%s] of blob [%s][%s][%s]",
10291029
abortMultipartUploadRequest.getUploadId(),
10301030
blobStore.getRepositoryMetadata().name(),
10311031
abortMultipartUploadRequest.getBucketName(),

muted-tests.yml

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,6 @@ tests:
274274
- class: org.elasticsearch.datastreams.DataStreamsClientYamlTestSuiteIT
275275
method: test {p0=data_stream/120_data_streams_stats/Multiple data stream}
276276
issue: https://github.com/elastic/elasticsearch/issues/118217
277-
- class: org.elasticsearch.xpack.security.operator.OperatorPrivilegesIT
278-
method: testEveryActionIsEitherOperatorOnlyOrNonOperator
279-
issue: https://github.com/elastic/elasticsearch/issues/118220
280277
- class: org.elasticsearch.validation.DotPrefixClientYamlTestSuiteIT
281278
issue: https://github.com/elastic/elasticsearch/issues/118224
282279
- class: org.elasticsearch.packaging.test.ArchiveTests
@@ -294,6 +291,36 @@ tests:
294291
- class: org.elasticsearch.xpack.searchablesnapshots.RetrySearchIntegTests
295292
method: testSearcherId
296293
issue: https://github.com/elastic/elasticsearch/issues/118374
294+
- class: org.elasticsearch.docker.test.DockerYmlTestSuiteIT
295+
method: test {p0=/10_info/Info}
296+
issue: https://github.com/elastic/elasticsearch/issues/118394
297+
- class: org.elasticsearch.docker.test.DockerYmlTestSuiteIT
298+
method: test {p0=/11_nodes/Additional disk information}
299+
issue: https://github.com/elastic/elasticsearch/issues/118395
300+
- class: org.elasticsearch.docker.test.DockerYmlTestSuiteIT
301+
method: test {p0=/11_nodes/Test cat nodes output with full_id set}
302+
issue: https://github.com/elastic/elasticsearch/issues/118396
303+
- class: org.elasticsearch.docker.test.DockerYmlTestSuiteIT
304+
method: test {p0=/11_nodes/Test cat nodes output}
305+
issue: https://github.com/elastic/elasticsearch/issues/118397
306+
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
307+
method: test {p0=migrate/20_reindex_status/Test get reindex status with nonexistent task id}
308+
issue: https://github.com/elastic/elasticsearch/issues/118401
309+
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
310+
method: test {p0=migrate/10_reindex/Test Reindex With Nonexistent Data Stream}
311+
issue: https://github.com/elastic/elasticsearch/issues/118274
312+
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
313+
method: test {p0=migrate/10_reindex/Test Reindex With Bad Data Stream Name}
314+
issue: https://github.com/elastic/elasticsearch/issues/118272
315+
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
316+
method: test {p0=migrate/10_reindex/Test Reindex With Unsupported Mode}
317+
issue: https://github.com/elastic/elasticsearch/issues/118273
318+
- class: org.elasticsearch.xpack.inference.InferenceCrudIT
319+
method: testUnifiedCompletionInference
320+
issue: https://github.com/elastic/elasticsearch/issues/118405
321+
- class: org.elasticsearch.xpack.security.operator.OperatorPrivilegesIT
322+
method: testEveryActionIsEitherOperatorOnlyOrNonOperator
323+
issue: https://github.com/elastic/elasticsearch/issues/118220
297324

298325
# Examples:
299326
#

qa/full-cluster-restart/src/javaRestTest/java/org/elasticsearch/upgrades/FullClusterRestartDownsampleIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ private String getRollupIndexName() throws IOException {
263263
if (asMap.size() == 1) {
264264
return (String) asMap.keySet().toArray()[0];
265265
}
266-
logger.warn("--> No matching rollup name for path [%s]", endpoint);
266+
logger.warn("--> No matching rollup name for path [{}]", endpoint);
267267
return null;
268268
}
269269

qa/rolling-upgrade/src/javaRestTest/java/org/elasticsearch/upgrades/DownsampleIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ private String getRollupIndexName() throws IOException {
238238
if (asMap.size() == 1) {
239239
return (String) asMap.keySet().toArray()[0];
240240
}
241-
logger.warn("--> No matching rollup name for path [%s]", endpoint);
241+
logger.warn("--> No matching rollup name for path [{}]", endpoint);
242242
return null;
243243
}
244244

server/src/internalClusterTest/java/org/elasticsearch/action/admin/indices/create/CloneIndexIT.java

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import org.elasticsearch.common.ValidationException;
1616
import org.elasticsearch.common.settings.Settings;
1717
import org.elasticsearch.index.IndexVersion;
18+
import org.elasticsearch.index.IndexVersions;
1819
import org.elasticsearch.index.query.TermsQueryBuilder;
1920
import org.elasticsearch.index.seqno.SeqNoStats;
2021
import org.elasticsearch.test.ESIntegTestCase;
@@ -26,6 +27,7 @@
2627
import static org.elasticsearch.action.admin.indices.create.ShrinkIndexIT.assertNoResizeSourceIndexSettings;
2728
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAcked;
2829
import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertHitCount;
30+
import static org.hamcrest.Matchers.anyOf;
2931
import static org.hamcrest.Matchers.containsString;
3032
import static org.hamcrest.Matchers.equalTo;
3133

@@ -143,6 +145,51 @@ public void testResizeChangeSyntheticSource() {
143145
assertThat(error.getMessage(), containsString("can't change setting [index.mapping.source.mode] during resize"));
144146
}
145147

148+
public void testResizeChangeRecoveryUseSyntheticSource() {
149+
prepareCreate("source").setSettings(
150+
indexSettings(between(1, 5), 0).put("index.mode", "logsdb")
151+
.put(
152+
"index.version.created",
153+
IndexVersionUtils.randomVersionBetween(
154+
random(),
155+
IndexVersions.USE_SYNTHETIC_SOURCE_FOR_RECOVERY,
156+
IndexVersion.current()
157+
)
158+
)
159+
).setMapping("@timestamp", "type=date", "host.name", "type=keyword").get();
160+
updateIndexSettings(Settings.builder().put("index.blocks.write", true), "source");
161+
IllegalArgumentException error = expectThrows(IllegalArgumentException.class, () -> {
162+
indicesAdmin().prepareResizeIndex("source", "target")
163+
.setResizeType(ResizeType.CLONE)
164+
.setSettings(
165+
Settings.builder()
166+
.put(
167+
"index.version.created",
168+
IndexVersionUtils.randomVersionBetween(
169+
random(),
170+
IndexVersions.USE_SYNTHETIC_SOURCE_FOR_RECOVERY,
171+
IndexVersion.current()
172+
)
173+
)
174+
.put("index.recovery.use_synthetic_source", true)
175+
.put("index.mode", "logsdb")
176+
.putNull("index.blocks.write")
177+
.build()
178+
)
179+
.get();
180+
});
181+
// The index.recovery.use_synthetic_source setting requires either index.mode or index.mapping.source.mode
182+
// to be present in the settings. Since these are all unmodifiable settings with a non-deterministic evaluation
183+
// order, any of them may trigger a failure first.
184+
assertThat(
185+
error.getMessage(),
186+
anyOf(
187+
containsString("can't change setting [index.mode] during resize"),
188+
containsString("can't change setting [index.recovery.use_synthetic_source] during resize")
189+
)
190+
);
191+
}
192+
146193
public void testResizeChangeIndexSorts() {
147194
prepareCreate("source").setSettings(indexSettings(between(1, 5), 0))
148195
.setMapping("@timestamp", "type=date", "host.name", "type=keyword")

0 commit comments

Comments
 (0)