You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by mi...@apache.org on 2023/06/14 02:24:26 UTC
[eventmesh] branch master updated: [ISSUE #4110] Enhance thread handling of InterruptedException (#4113)
This is an automated email from the ASF dual-hosted git repository.
mikexue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/eventmesh.git
The following commit(s) were added to refs/heads/master by this push:
new 601d684c6 [ISSUE #4110] Enhance thread handling of InterruptedException (#4113)
601d684c6 is described below
commit 601d684c6a4004661c900fbd7a39a1ef9d17736a
Author: Pil0tXia <41...@users.noreply.github.com>
AuthorDate: Wed Jun 14 10:24:19 2023 +0800
[ISSUE #4110] Enhance thread handling of InterruptedException (#4113)
---
.../apache/eventmesh/runtime/core/protocol/http/retry/HttpRetryer.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/retry/HttpRetryer.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/retry/HttpRetryer.java
index 4e1be246d..14ff727df 100644
--- a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/retry/HttpRetryer.java
+++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/http/retry/HttpRetryer.java
@@ -83,6 +83,9 @@ public class HttpRetryer {
});
}
} catch (Exception e) {
+ if (e instanceof InterruptedException) {
+ Thread.currentThread().interrupt();
+ }
retryLogger.error("http-retry-dispatcher error!", e);
}
}, "http-retry-dispatcher");
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org