use of org.elasticsearch.test.DummyShardLock in project elasticsearch by elastic.
the class IndexShardTestCase method createStore.
private Store createStore(IndexSettings indexSettings, ShardPath shardPath) throws IOException {
final ShardId shardId = shardPath.getShardId();
final DirectoryService directoryService = new DirectoryService(shardId, indexSettings) {
@Override
public Directory newDirectory() throws IOException {
return newFSDirectory(shardPath.resolveIndex());
}
};
return new Store(shardId, indexSettings, directoryService, new DummyShardLock(shardId));
}
Aggregations