Skip to content

Commit 816d501

Browse files
authored
DateFieldMapper: unmute test whose failure is no longer relevant, remove unused code (#138313)
Resolves #135939.
1 parent 6720ad4 commit 816d501

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -417,9 +417,6 @@ tests:
417417
- class: org.elasticsearch.xpack.inference.integration.AuthorizationTaskExecutorIT
418418
method: testCreatesChatCompletion_AndThenCreatesTextEmbedding
419419
issue: https://github.com/elastic/elasticsearch/issues/138012
420-
- class: org.elasticsearch.index.mapper.DateFieldMapperTests
421-
method: testSortShortcuts
422-
issue: https://github.com/elastic/elasticsearch/issues/138018
423420
- class: org.elasticsearch.xpack.ml.integration.ForecastIT
424421
method: testOverflowToDisk
425422
issue: https://github.com/elastic/elasticsearch/issues/138055

server/src/test/java/org/elasticsearch/index/mapper/DateFieldMapperTests.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import org.apache.lucene.index.IndexWriterConfig;
1717
import org.apache.lucene.index.IndexableField;
1818
import org.apache.lucene.index.LeafReaderContext;
19-
import org.apache.lucene.search.DocIdSetIterator;
2019
import org.apache.lucene.search.Sort;
2120
import org.apache.lucene.search.SortField;
2221
import org.apache.lucene.store.Directory;
@@ -35,7 +34,6 @@
3534
import org.elasticsearch.index.codec.tsdb.es819.ES819TSDBDocValuesFormat;
3635
import org.elasticsearch.index.mapper.DateFieldMapper.DateFieldType;
3736
import org.elasticsearch.index.mapper.blockloader.docvalues.LongsBlockLoader;
38-
import org.elasticsearch.lucene.comparators.XUpdateableDocIdSetIterator;
3937
import org.elasticsearch.script.DateFieldScript;
4038
import org.elasticsearch.script.ScriptService;
4139
import org.elasticsearch.search.DocValueFormat;
@@ -51,7 +49,6 @@
5149
import java.time.ZonedDateTime;
5250
import java.util.Comparator;
5351
import java.util.List;
54-
import java.util.function.Consumer;
5552
import java.util.stream.IntStream;
5653
import java.util.stream.Stream;
5754

@@ -919,12 +916,6 @@ public void testSingletonLongBulkBlockReadingManyValues() throws Exception {
919916
}
920917
}
921918

922-
private static final Consumer<DocIdSetIterator> checkClass = disi -> {
923-
assertThat(disi, instanceOf(XUpdateableDocIdSetIterator.class));
924-
XUpdateableDocIdSetIterator iterator = (XUpdateableDocIdSetIterator) disi;
925-
assertThat(iterator.getDelegate().getClass().getName(), containsString("SecondarySortIterator"));
926-
};
927-
928919
@Override
929920
protected List<SortShortcutSupport> getSortShortcutSupport() {
930921
return List.of(

0 commit comments

Comments
 (0)