Skip to content
Merged
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,6 @@ private void testIndexInputs(final CheckedBiConsumer<IndexInput, IndexInput, Exc
});
}

@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/69914")
public void testClearCache() throws Exception {
try (CacheService cacheService = defaultCacheService()) {
cacheService.start();
Expand Down Expand Up @@ -728,7 +727,8 @@ public void testClearCache() throws Exception {

try (IndexInput input = directory.openInput(fileInfo.physicalName(), randomIOContext())) {
assertThat(input.length(), equalTo((long) fileLength));
final int start = between(0, fileLength - 1);
// we can't just read footer as that is not served from cache
final int start = between(0, fileLength - CodecUtil.footerLength() - 1);
final int end = between(start + 1, fileLength);

input.seek(start);
Expand Down