chanjarster commented on a change in pull request #599: SCB-1604 modify
InterruptedException
URL: https://github.com/apache/servicecomb-pack/pull/599#discussion_r349410652
##########
File path:
omega/omega-transaction/src/main/java/org/apache/servicecomb/pack/omega/transaction/ForwardRecovery.java
##########
@@ -66,6 +66,7 @@ public Object applyTo(ProceedingJoinPoint joinPoint,
Compensable compensable, Co
}
}
} catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
Review comment:
When InterruptedException is caught, the Thread's interruption state is
cleared, so technically speaking, even you throw a RuntimeException, the
interruption is cleared, so I say "swallowed".
Thread.currentThread().interrupt() can recover the interruption state
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services