You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@eventmesh.apache.org by "Alonexc (via GitHub)" <gi...@apache.org> on 2023/07/28 01:32:12 UTC
Re: [PR] [ISSUE #4263] InterruptedExceptions should never be ignored[ThreadUtils] (eventmesh)
Alonexc commented on code in PR #4297:
URL: https://github.com/apache/eventmesh/pull/4297#discussion_r1276989953
##########
eventmesh-common/src/main/java/org/apache/eventmesh/common/utils/ThreadUtils.java:
##########
@@ -34,7 +34,7 @@ public static void randomPause(long min, long max, TimeUnit timeUnit) {
long timeout = ThreadLocalRandom.current().nextLong(min, max + 1);
timeUnit.sleep(timeout);
} catch (InterruptedException ignore) {
- //ignore
+ Thread.currentThread().interrupt;
Review Comment:
```
Thread.currentThread().interrupt();
```
--
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.
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org