throw SlowOperationCanceledException consistently in FORCE_THROW mode

Before the change it was thrown only once.

GitOrigin-RevId: befc489bc5c0edba54e64929c230d78fba9a707c
This commit is contained in:
Daniil Ovchinnikov
2025-03-24 21:00:56 +00:00
committed by intellij-monorepo-bot
parent f7bf666e77
commit 32aa45b549
@@ -112,12 +112,12 @@ public final class SlowOperations {
if (isAlwaysAllowed() || isSlowOperationAllowed()) {
return;
}
if (isAlreadyReported()) {
return;
}
if (isInSection(FORCE_THROW) && !Cancellation.isInNonCancelableSection()) {
throw new SlowOperationCanceledException();
}
if (isAlreadyReported()) {
return;
}
Holder.LOG.error(ERROR_EDT);
}