-
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
eureka client down after invoke refreshScope.refreshAll() ? #4160
Comments
Are you trying to disable refresh of a running application? |
We use Apollo as our configuration hub and hot updates to our configuration are done using springcloud's |
I also encountered such a problem |
I think this should be a problem with the eureka implementation. Just turn off the eureka refresh listener, see my fix package for details: https://github.com/yonyong/spring-cloud-netflix-eureka-patch. |
The service of the eureka client is offline after using
refreshAll
orrefresh(beanName)
.My troubleshooting conclusion is that executing the
refreshAll()
orrefresh(beanName)
method will trigger multipleStatusChangeEvents
and call theinstance. setStatus()
method in parallel to modify the instance status.My idea is to disable eureka refresh, but after turning off the configuration, the application can still receive the
RefreshScopeRefreshedEvent
event.So are there two things to consider?
1)If I set the configuration refresh to
false
:eureka.client.refresh.enable=false
,thenEurekaClientConfigurationRefresher
should not receive theRefreshScopeRefreshedEvent
event2)If
EurekaClientConfigurationRefresher
receives theRefreshScopeRefreshedEvent
event, it should do a layer of filtering, such as whether the event name is EurekaThe text was updated successfully, but these errors were encountered: