throw new IndexFailedEngineException(shardId, index, t);
}
}
private void innerIndex(Index index, IndexWriter writer) throws IOException {
synchronized (dirtyLock(index.uid())) {
<BUG>HashedBytesRef versionKey = versionKey(index.uid());</BUG>
final long currentVersion;
<BUG>VersionValue versionValue = versionMap.get(versionKey);
if (versionValue == null) {</BUG>
currentVersion = loadCurrentVersionFromIndex(index.uid());

throw new IndexFailedEngineException(shardId, index, t);
}
}
private void innerIndex(Index index, IndexWriter writer) throws IOException {
synchronized (dirtyLock(index.uid())) {
final long currentVersion;
VersionValue versionValue = versionMap.getUnderLock(index.uid().bytes());
if (versionValue == null) {
currentVersion = loadCurrentVersionFromIndex(index.uid());
