public void start() throws EngineException {
store.incRef();
try (InternalLock _ = writeLock.acquire()) {
if (indexWriter != null) {
throw new EngineAlreadyStartedException(shardId);
}
if (closed) {
throw new EngineClosedException(shardId);
}
if (logger.isDebugEnabled()) {