This is an automated email from the ASF dual-hosted git repository.

xiaoyu 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 869537600 fix #4298 zombie -> pass update PENDING_SYNC (#4430)
869537600 is described below

commit 8695376009fa5d924ad3941ae722f3cde8d6c64c
Author: iwangjie <[email protected]>
AuthorDate: Thu Mar 9 14:15:16 2023 +0800

    fix #4298 zombie -> pass update PENDING_SYNC (#4430)
    
    Co-authored-by: xiaoyu <[email protected]>
---
 .../java/org/apache/shenyu/admin/service/impl/UpstreamCheckService.java  | 1 +
 1 file changed, 1 insertion(+)

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 e63427a28..56ed75e79 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
@@ -316,6 +316,7 @@ public class UpstreamCheckService {
                     if (!commonUpstream.isStatus()) {
                         
commonUpstream.setTimestamp(System.currentTimeMillis());
                         commonUpstream.setStatus(true);
+                        PENDING_SYNC.add(commonUpstream.hashCode());
                         LOG.info("UpstreamCacheManager check success the url: 
{}, host: {} ", commonUpstream.getUpstreamUrl(), 
commonUpstream.getUpstreamHost());
                     }
                     return commonUpstream;

Reply via email to