Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions muted-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -489,21 +489,12 @@ tests:
- class: org.elasticsearch.search.CCSDuelIT
method: testTermsAggsWithProfile
issue: https://github.com/elastic/elasticsearch/issues/132880
- class: org.elasticsearch.index.mapper.LongFieldMapperTests
method: testFetchMany
issue: https://github.com/elastic/elasticsearch/issues/132948
- class: org.elasticsearch.index.mapper.LongFieldMapperTests
method: testFetch
issue: https://github.com/elastic/elasticsearch/issues/132956
- class: org.elasticsearch.cluster.ClusterInfoServiceIT
method: testMaxQueueLatenciesInClusterInfo
issue: https://github.com/elastic/elasticsearch/issues/132957
- class: org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT
method: test {p0=search/400_synthetic_source/_doc_count}
issue: https://github.com/elastic/elasticsearch/issues/132965
- class: org.elasticsearch.index.mapper.LongFieldMapperTests
method: testSyntheticSourceWithTranslogSnapshot
issue: https://github.com/elastic/elasticsearch/issues/132964
- class: org.elasticsearch.test.rest.yaml.CcsCommonYamlTestSuiteIT
method: test {p0=search/160_exists_query/Test exists query on unmapped float field}
issue: https://github.com/elastic/elasticsearch/issues/132984
Expand Down Expand Up @@ -594,9 +585,6 @@ tests:
- class: org.elasticsearch.xpack.search.CrossClusterAsyncSearchIT
method: testCCSClusterDetailsWhereAllShardsSkippedInCanMatch
issue: https://github.com/elastic/elasticsearch/issues/133370
- class: org.elasticsearch.index.mapper.LongFieldMapperTests
method: testSyntheticSourceMany
issue: https://github.com/elastic/elasticsearch/issues/133394
- class: org.elasticsearch.test.rest.yaml.RcsCcsCommonYamlTestSuiteIT
method: test {p0=search.vectors/42_knn_search_int4_flat/kNN search with filter}
issue: https://github.com/elastic/elasticsearch/issues/133420
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ public void testLongIndexingCoercesIntoRange() throws Exception {
assertThat(doc.rootDoc().getFields("field"), hasSize(1));
}

// This is the biggest long that double can represent exactly
public static final long MAX_SAFE_LONG_FOR_DOUBLE = 1L << 53;

@Override
protected Number randomNumber() {
if (randomBoolean()) {
Expand All @@ -111,7 +114,7 @@ protected Number randomNumber() {
if (randomBoolean()) {
return randomDouble();
}
return randomDoubleBetween(Long.MIN_VALUE, Long.MAX_VALUE, true);
return randomDoubleBetween(-MAX_SAFE_LONG_FOR_DOUBLE, MAX_SAFE_LONG_FOR_DOUBLE, true);
}

public void testFetchCoerced() throws IOException {
Expand Down