Send index to rebuild after exception IDEA-311002 ea-603446

GitOrigin-RevId: 458d11dfaecfe7d964a50ce247518a2297d3c0d6
This commit is contained in:
Elena Shaverdova
2023-01-31 21:40:39 +00:00
committed by intellij-monorepo-bot
parent 2420e61c3e
commit ad8067fee1
@@ -1,4 +1,4 @@
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.util.indexing.impl.storage;
@@ -32,7 +32,6 @@ import org.jetbrains.annotations.Nullable;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.locks.ReadWriteLock;
/**
* @author Eugene Zhuravlev
@@ -207,6 +206,9 @@ public class VfsAwareMapReduceIndex<Key, Value, FileCachedData extends VfsAwareM
}
catch (IOException e) {
LOG.error(e);
// Index would be rebuilt, and exception would be logged with INFO severity
// in com.intellij.util.indexing.FileBasedIndexImpl.requestIndexRebuildOnException
throw new RuntimeException(e);
}
}
return null;