You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by ke...@apache.org on 2023/02/15 03:28:41 UTC
[shenyu] branch master updated: [type: performance] optimize UpstreamCheckService (#4386)
This is an automated email from the ASF dual-hosted git repository.
kevinclair pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shenyu.git
The following commit(s) were added to refs/heads/master by this push:
new 59660536a [type: performance] optimize UpstreamCheckService (#4386)
59660536a is described below
commit 59660536a472c9df600444e3d420ada14dfbcfc3
Author: dragon-zhang <zh...@apache.org>
AuthorDate: Wed Feb 15 11:28:34 2023 +0800
[type: performance] optimize UpstreamCheckService (#4386)
Co-authored-by: hailang <a1...@hotmail.com>
---
.../java/org/apache/shenyu/admin/service/impl/UpstreamCheckService.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/UpstreamCheckService.java b/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/UpstreamCheckService.java
index 4cb1a81c2..e63427a28 100644
--- a/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/UpstreamCheckService.java
+++ b/shenyu-admin/src/main/java/org/apache/shenyu/admin/service/impl/UpstreamCheckService.java
@@ -325,7 +325,7 @@ public class UpstreamCheckService {
LOG.error("check the url={} is fail ", commonUpstream.getUpstreamUrl());
}
return null;
- }).exceptionally(ex -> {
+ }, invokeExecutor).exceptionally(ex -> {
LOG.error("An exception occurred during the check of url {}: {}", commonUpstream.getUpstreamUrl(), ex);
return null;
}));