Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: when there is a non-ip IPAddr in Eureka, delete it to avoid a failure in EDS #1322

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

lcfang
Copy link

@lcfang lcfang commented Sep 18, 2024

Ⅰ. Describe what this PR did

当eureka中注册的服务IPAddr为域名而非ip时,会导致其他EDS下发失败,故打印waring并忽略该应用

Ⅱ. Does this pull request fix one issue?

fixes #1284
fixes #1299

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

在启动higress之前往eureka注册中心注册一个服务,ipaddr为域名而非ip,修复前查看配置下发是失败的,修复后不报错,controller中有waring日志

Ⅴ. Special notes for reviews

@CLAassistant
Copy link

CLAassistant commented Sep 18, 2024

CLA assistant check
All committers have signed the CLA.

@lcfang
Copy link
Author

lcfang commented Sep 19, 2024

// 当eureka中注册的服务IPAddr为域名而非ip时,会导致全部EDS下发失败
log.Warnf("the Non-IP IPAddr %s is not allowed , please check", instant.IPAddr)
delete(apps, name)
break
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里逻辑感觉有点问题。delete 之后还要继续 parse 吗?还是说只是忽略非 IP 实例就行了?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants