Skip to content
Snippets Groups Projects
Commit d6dd9458 authored by brinn's avatar brinn
Browse files

fix: ensure that an InterruptedExceptionUnchecked will lead to...

fix: ensure that an InterruptedExceptionUnchecked will lead to ExceptionStatus.INTERRUPTED rather than ExceptionStatus.EXCPETIONAL in getResult()

SVN: 14259
parent 8dbde4ba
No related branches found
No related tags found
No related merge requests found
......@@ -373,6 +373,16 @@ public final class ConcurrencyUtilities
} catch (ExecutionException ex)
{
final Throwable cause = ex.getCause();
if (cause instanceof InterruptedExceptionUnchecked)
{
future.cancel(true);
if (logSettingsOrNull != null)
{
logSettingsOrNull.getLogger().log(logSettingsOrNull.getLogLevelForError(),
String.format("%s: interrupted.", logSettingsOrNull.getOperationName()));
}
return ExecutionResult.createInterrupted();
}
if (logSettingsOrNull != null)
{
final String message =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment