apache / apache/shenyu

[BUG] <title>pod异常退出后,节点没有正常下线

Open
#6,021 1 comment 0 reactions 0 assignees View on GitHub
type: bug
Dominant language
Java
Stars
8.8k
Forks
3.1k
Avg merge
7d 1h
Merged PRs (30d)
85

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Current Behavior

环境:K8S容器部署
版本: 2.6.1
问题: pod节点因k8s node宕机异常退出后,服务出现访问异常,具体表现为有时很快,有时很慢(应该是超时之后转到的正常节点),查看admin页面,发现upsteam中异常节点没有下线,查看amin日志发现

`2025-05-12 01:16:17 [shenyu-upstream-health-check-request-6] ERROR org.apache.shenyu.admin.service.impl.UpstreamCheckService - check zombie upstream the url=10.244.47.9:8080 is fail

2025-05-12 01:16:30 [shenyu-upstream-health-check-request-3] ERROR org.apache.shenyu.common.utils.UpstreamCheckUtils - socket connect is error. host:10.244.47.9 port:8080 timeout:3000`

手动删除异常节点ip之后,服务正常

### Expected Behavior

_No response_

### Steps To Reproduce

_No response_

### Environment

```markdown
ShenYu version(s):
```

### Debug logs

_No response_

### Anything else?

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the UpstreamCheckService and UpstreamCheckUtils entry points, using the reported zombie-upstream and socket-connect log messages as the first clues. Investigate the K8S node failure scenario described in the issue and verify that the failed upstream is removed without manual IP deletion, after which requests should no longer route to it.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kubernetes
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.