Skip to content

fix:#4020 The log was incorrectly printed: "A cross-cluster call occurs"#4021

Open
HDHXTM wants to merge 1 commit intoalibaba:2021.xfrom
HDHXTM:2021.x
Open

fix:#4020 The log was incorrectly printed: "A cross-cluster call occurs"#4021
HDHXTM wants to merge 1 commit intoalibaba:2021.xfrom
HDHXTM:2021.x

Conversation

@HDHXTM
Copy link
Copy Markdown

@HDHXTM HDHXTM commented Jul 15, 2025

Describe what this PR does / why we need it

Due to this pull request(https://github.com/alibaba/spring-cloud-alibaba/pull/3771), the default value for com.alibaba.cloud.nacos.NacosDiscoveryProperties#clusterName was removed. When the user does not explicitly specify a clusterName, the method com.alibaba.cloud.nacos.loadbalancer.NacosLoadBalancer#getInstanceResponse will directly enter the else block, causing the message "A cross-cluster call occurs" to be logged incorrectly.

Does this pull request fix one issue?

Fixes #4020

Describe how you did it

Describe how to verify it

Special notes for reviews

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jul 15, 2025

CLA assistant check
All committers have signed the CLA.

@calvinit
Copy link
Copy Markdown

I encountered the same issue. Why has no one taken ownership of this issue, and why has this PR not been reviewed or approved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants