Skip to content

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

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

Open
wants to merge 1 commit into
base: 2021.x
Choose a base branch
from

Conversation

HDHXTM
Copy link

@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

CLAassistant commented Jul 15, 2025

CLA assistant check
All committers have signed the CLA.

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.

2 participants