Skip to content

Commit 897e477

Browse files
committed
Fix up merge
1 parent 47ec08d commit 897e477

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x-pack/plugin/searchable-snapshots/src/test/java/org/elasticsearch/xpack/searchablesnapshots/cache/CacheBufferedIndexInputTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ public void testThrowsEOFException() throws IOException {
102102
final BlobContainer blobContainer = singleBlobContainer(blobName, input);
103103

104104
final Path cacheDir = createTempDir();
105-
try (CacheDirectory cacheDirectory
106-
= new CacheDirectory(snapshot, blobContainer, cacheService, cacheDir, snapshotId, indexId, shardId, () -> 0L)) {
107-
try (IndexInput indexInput = cacheDirectory.openInput(fileName, newIOContext(random()))) {
105+
try (SearchableSnapshotDirectory searchableSnapshotDirectory = new SearchableSnapshotDirectory( blobContainer, snapshot,
106+
snapshotId, indexId, shardId, Settings.EMPTY, () -> 0L, cacheService, cacheDir)) {
107+
try (IndexInput indexInput = searchableSnapshotDirectory.openInput(fileName, newIOContext(random()))) {
108108
final byte[] buffer = new byte[input.length + 1];
109109
final IOException exception = expectThrows(IOException.class, () -> indexInput.readBytes(buffer, 0, buffer.length));
110110
if (containsEOFException(exception, new HashSet<>()) == false) {

0 commit comments

Comments
 (0)