spring-cloud-alibaba
spring-cloud-alibaba copied to clipboard
fix:#4020 The log was incorrectly printed: "A cross-cluster call occurs"
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
I encountered the same issue. Why has no one taken ownership of this issue, and why has this PR not been reviewed or approved?