[maven] avoid deadlocks in tests due to exceptions thrown by test logger IDEA-372022

(cherry picked from commit cb2a6fc1e0f11260d251e885af7499a7a3cbdb83)

GitOrigin-RevId: bcfcc62ad9c557b22a593dc0e6629c7844d99063
This commit is contained in:
Nikita.Skvortsov
2025-05-28 15:26:52 +02:00
committed by intellij-monorepo-bot
parent 49bad69936
commit 25fd4b3c7d

View File

@@ -279,7 +279,10 @@ class MavenSystemIndicesManager(val cs: CoroutineScope) : PersistentStateCompone
}
catch (e: Throwable) {
MavenLog.LOG.error(e)
try {
MavenLog.LOG.error(e)
} catch (_: AssertionError) {
}
luceneUpdateStatusMap[idx.repository.url] = MavenIndexUpdateState(
idx.repository.url, null, null,
MavenIndexUpdateState.State.FAILED)