Fixed test after merging master
This commit is contained in:
parent
6d55d075ab
commit
95608faa88
|
@ -29,6 +29,7 @@ import org.elasticsearch.common.UUIDs;
|
||||||
import org.elasticsearch.common.settings.Settings;
|
import org.elasticsearch.common.settings.Settings;
|
||||||
import org.elasticsearch.env.Environment;
|
import org.elasticsearch.env.Environment;
|
||||||
import org.elasticsearch.env.TestEnvironment;
|
import org.elasticsearch.env.TestEnvironment;
|
||||||
|
import org.elasticsearch.index.engine.InternalEngineFactory;
|
||||||
import org.elasticsearch.index.shard.IndexShard;
|
import org.elasticsearch.index.shard.IndexShard;
|
||||||
import org.elasticsearch.index.shard.IndexShardState;
|
import org.elasticsearch.index.shard.IndexShardState;
|
||||||
import org.elasticsearch.index.shard.IndexShardTestCase;
|
import org.elasticsearch.index.shard.IndexShardTestCase;
|
||||||
|
@ -97,7 +98,8 @@ public class BlobStoreRepositoryRestoreTests extends IndexShardTestCase {
|
||||||
|
|
||||||
// build a new shard using the same store directory as the closed shard
|
// build a new shard using the same store directory as the closed shard
|
||||||
ShardRouting shardRouting = ShardRoutingHelper.initWithSameId(shard.routingEntry(), EXISTING_STORE_INSTANCE);
|
ShardRouting shardRouting = ShardRoutingHelper.initWithSameId(shard.routingEntry(), EXISTING_STORE_INSTANCE);
|
||||||
shard = newShard(shardRouting, shard.shardPath(), shard.indexSettings().getIndexMetaData(), null, null, () -> {});
|
shard = newShard(shardRouting, shard.shardPath(), shard.indexSettings().getIndexMetaData(), null,
|
||||||
|
new InternalEngineFactory(), () -> {});
|
||||||
|
|
||||||
// restore the shard
|
// restore the shard
|
||||||
recoverShardFromSnapshot(shard, snapshot, repository);
|
recoverShardFromSnapshot(shard, snapshot, repository);
|
||||||
|
|
Loading…
Reference in New Issue