Skip to content

Commit d6220c5

Browse files
committed
Fix up merge
1 parent 097edf4 commit d6220c5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test/framework/src/main/java/org/elasticsearch/common/lucene/store/ESIndexInputTestCase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public class ESIndexInputTestCase extends ESTestCase {
4343
@BeforeClass
4444
public static void createExecutor() {
4545
final String name = getTestClass().getSimpleName() + "#randomReadAndSlice";
46-
executor = EsExecutors.newFixed(name, 10, 0, EsExecutors.daemonThreadFactory(name), new ThreadContext(Settings.EMPTY));
46+
executor = EsExecutors.newFixed(name, 10, 0, EsExecutors.daemonThreadFactory(name), new ThreadContext(Settings.EMPTY), false);
4747
}
4848

4949
@AfterClass

x-pack/plugin/searchable-snapshots/src/test/java/org/elasticsearch/index/store/SearchableSnapshotDirectoryTests.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
import org.apache.lucene.store.IOContext;
3333
import org.apache.lucene.store.IndexInput;
3434
import org.apache.lucene.util.BytesRef;
35+
import org.elasticsearch.Version;
3536
import org.elasticsearch.action.support.PlainActionFuture;
3637
import org.elasticsearch.cluster.metadata.IndexMetaData;
3738
import org.elasticsearch.cluster.metadata.RepositoryMetaData;
@@ -341,7 +342,8 @@ private void testDirectories(final CheckedBiConsumer<Directory, Directory, Excep
341342
final PlainActionFuture<String> future = PlainActionFuture.newFuture();
342343
threadPool.generic().submit(() -> {
343344
IndexShardSnapshotStatus snapshotStatus = IndexShardSnapshotStatus.newInitializing(null);
344-
repository.snapshotShard(store, null, snapshotId, indexId, indexCommit, snapshotStatus, true, emptyMap(), future);
345+
repository.snapshotShard(store, null, snapshotId, indexId, indexCommit, snapshotStatus, Version.CURRENT, emptyMap(),
346+
future);
345347
future.actionGet();
346348
});
347349
future.actionGet();

0 commit comments

Comments
 (0)