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
Invoking /management/refresh on service endpoints results in service getting de-registered. #1652
Comments
Did you say you had a sample app to reproduce the issue? |
@ryanjbaxter @dsyer Thanks for your help. Following are the details. I m using the Jhipster (https://jhipster.github.io/) stack to develop micro service. Following are the steps to reproduce: Registry: Service: Steps to reproduce:
I'll keep the thread posted on my findings. Let me know if I missed anything. |
Using a very old version Brixton.SR7 |
@spencergibb I see this happening even with Camden.SR4. What am I missing then? |
I bumped the version to
|
I see the following traces and doubt if it is correct! Unregistering, followed by re-register ? [ XNIO-2 task-4] com.netflix.discovery.DiscoveryClient : Unregistering ... |
Why wouldn't you expect that? You are restarting the app, so it makes sense that the app would unregister with Eureka when shutting down and then re-register once it starts back up. |
Ryan, feel free to correct my understanding. The issue is in /management/refresh call which is just the configuration refresh and I m not expecting the service to get registered and de-registered and the log says it has de-registered. Am I missing anything? |
I believe it has to do with the fact that calling |
#421. Going by this, I thought its an issue and it is already fixed. |
#421 was about PERMANENTLY deregistering the application. In you case it deregisters the application and then reregisters it. So it seems to be working as expected. |
Ok. Thanks for the clarification. |
Overview of the issue
Invoking /refresh on service endpoints results in service getting de-registered.
Motivation for or Use Case
Was trying to reload the configurations using @RefreshScope
Reproduce the error
Bring up Registry
Bring up any service
Call /management/refresh on the service.
Related issues
#421
Version
spring-cloud-starter (1.1.3.Release)
The text was updated successfully, but these errors were encountered: