Elasticsearch now uses #61957 which includes https://issues.apache.org/jira/browse/LUCENE-9456. We can remove the corresponding //TODO in SearchableSnapshotsBlobStoreCacheIntegTests.
This commit is contained in:
parent
0c8b438577
commit
ebbf4df9fd
|
@ -217,12 +217,8 @@ public class SearchableSnapshotsBlobStoreCacheIntegTests extends BaseSearchableS
|
|||
new SearchableSnapshotsStatsRequest()
|
||||
).actionGet().getStats()) {
|
||||
for (final SearchableSnapshotShardStats.CacheIndexInputStats indexInputStats : shardStats.getStats()) {
|
||||
final boolean mayReadMoreThanHeader
|
||||
// we read the header of each file contained within the .cfs file, which could be anywhere
|
||||
= indexInputStats.getFileName().endsWith(".cfs")
|
||||
// we read a couple of longs at the end of the .fdt file (see https://issues.apache.org/jira/browse/LUCENE-9456)
|
||||
// TODO revisit this when this issue is addressed in Lucene
|
||||
|| indexInputStats.getFileName().endsWith(".fdt");
|
||||
final boolean mayReadMoreThanHeader = indexInputStats.getFileName().endsWith(".cfs");
|
||||
if (indexInputStats.getFileLength() <= BlobStoreCacheService.DEFAULT_CACHED_BLOB_SIZE * 2
|
||||
|| mayReadMoreThanHeader == false) {
|
||||
assertThat(Strings.toString(indexInputStats), indexInputStats.getBlobStoreBytesRequested().getCount(), equalTo(0L));
|
||||
|
|
Loading…
Reference in New Issue