-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Improve EurekaConfigServerInstanceProvider #4267
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @Puppy4C, thanks for submitting the PR. Please fix the tests and make sure the build passes. Also, update the year in the license comment of any files you change to 2013-2024
.
a4e8f6c
to
aa3f90a
Compare
aa3f90a
to
0bb616e
Compare
Hi @OlgaMaciaszek ,I have fixed the tests and updated the license comment,please review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @Puppy4C, please see new comments.
...java/org/springframework/cloud/netflix/eureka/config/EurekaConfigServerInstanceProvider.java
Outdated
Show resolved
Hide resolved
...ringframework/cloud/netflix/eureka/config/EurekaConfigServerBootstrapConfigurationTests.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @Puppy4C. LGTM.
The parameter
regions
in theclient.getApplications()
method represents remoteRegions, which indicates that the registry should not only retrieve and return a list of its own nodes, but also return a list of remoteRegions.But
config.getRegion()
represents the local region, and if this parameter is included, the registry will continue to print:No remote registry available for the remote region xxx
We should refer to
com.netflix.discovery.DiscoveryClient#getAndStoreFullRegistry
and useconfig.fetchRegistryForRemoteRegions()
instead of it