spring-cloud-alibaba icon indicating copy to clipboard operation
spring-cloud-alibaba copied to clipboard

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

Open HDHXTM opened this issue 5 months ago • 2 comments

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

HDHXTM avatar Jul 15 '25 06:07 HDHXTM

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Jul 15 '25 06:07 CLAassistant

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

calvinit avatar Oct 27 '25 07:10 calvinit