Change to use shouldFetchRegistry.#3627
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3627 +/- ##
=========================================
Coverage 65.04% 65.04%
Complexity 1508 1508
=========================================
Files 191 191
Lines 7286 7286
Branches 871 871
=========================================
Hits 4739 4739
Misses 2236 2236
Partials 311 311
Continue to review full report at Codecov.
|
2 similar comments
Codecov Report
@@ Coverage Diff @@
## master #3627 +/- ##
=========================================
Coverage 65.04% 65.04%
Complexity 1508 1508
=========================================
Files 191 191
Lines 7286 7286
Branches 871 871
=========================================
Hits 4739 4739
Misses 2236 2236
Partials 311 311
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #3627 +/- ##
=========================================
Coverage 65.04% 65.04%
Complexity 1508 1508
=========================================
Files 191 191
Lines 7286 7286
Branches 871 871
=========================================
Hits 4739 4739
Misses 2236 2236
Partials 311 311
Continue to review full report at Codecov.
|
|
I think that makes sense. Is there a way to test this change? |
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3627 +/- ##
=========================================
Coverage 65.04% 65.04%
Complexity 1508 1508
=========================================
Files 191 191
Lines 7286 7286
Branches 871 871
=========================================
Hits 4739 4739
Misses 2236 2236
Partials 311 311 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
When I have two nodes to form a eurekaServer cluster,
If I set
eureka.client.fetch-registry=falseandeureka.client.register-with-eureka=true,then
eurekaClientinside the eurekaServer will never fetch registry from another eurekaServer upon startup.Refer to
PeerAwareInstanceRegistryImpl.syncUp:Because
eureka.client.fetch-registry=false,eurekaClient.getApplications().getRegisteredApplications()here will always be empty, so wait for 5 times here is meaningless. soclientConfig.shouldRegisterWithEureka()should be changed to useclientConfig.shouldFetchRegistry()just as what this PR shows.