Skip to content

Commit e3be1b4

Browse files
committed
Merge branch 'main' into enable-cluster-state-role-mapper
2 parents 03b21d9 + cd0f9a4 commit e3be1b4

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/reference/indices/forcemerge.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ documents can't be backed up incrementally.
5656
===== Blocks during a force merge
5757

5858
Calls to this API block until the merge is complete (unless request contains
59-
wait_for_completion=false, which is default true). If the client connection
59+
`wait_for_completion=false`, which is default `true`). If the client connection
6060
is lost before completion then the force merge process will continue in the
6161
background. Any new requests to force merge the same indices will also block
6262
until the ongoing force merge is complete.

muted-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,9 @@ tests:
377377
- class: org.elasticsearch.xpack.inference.services.cohere.CohereServiceTests
378378
method: testInfer_StreamRequest
379379
issue: https://github.com/elastic/elasticsearch/issues/114385
380+
- class: org.elasticsearch.index.mapper.extras.ScaledFloatFieldMapperTests
381+
method: testSyntheticSourceKeepArrays
382+
issue: https://github.com/elastic/elasticsearch/issues/114406
380383

381384
# Examples:
382385
#

test/framework/src/main/java/org/elasticsearch/index/mapper/MapperTestCase.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ public void testSyntheticSourceKeepArrays() throws IOException {
15701570
b.endObject();
15711571
}));
15721572

1573-
int elementCount = randomIntBetween(1, 5);
1573+
int elementCount = randomIntBetween(2, 5);
15741574
CheckedConsumer<XContentBuilder, IOException> buildInput = (XContentBuilder builder) -> {
15751575
example.buildInputArray(builder, elementCount);
15761576
};
@@ -1581,10 +1581,7 @@ public void testSyntheticSourceKeepArrays() throws IOException {
15811581
builder.endObject();
15821582
String expected = Strings.toString(builder);
15831583
String actual = syntheticSource(mapperAll, buildInput);
1584-
// Check for single-element array, the array source is not stored in this case.
1585-
if (expected.replace("[", "").replace("]", "").equals(actual) == false) {
1586-
assertThat(actual, equalTo(expected));
1587-
}
1584+
assertThat(actual, equalTo(expected));
15881585
}
15891586

15901587
@Override

0 commit comments

Comments
 (0)