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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]