-
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
Duplicate event: EurekaInstanceCanceledEvent #4140
Comments
is it causing a problem? |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
You can workaround the duplicated event using an own collection to track the active instances. |
After tracking it, it appears to be a duplicate event caused by #1376. I think this could be done with one of cancel and internalCancel removed. WDYT? 🤔 |
Describe the bug
An application that actively unregisters from eureka fires EurekaInstanceCanceledEvent twice.
The REST endpoint for unregister is executed. The first event is fired, as
handleCancelation
was added directly to the overriddencancel
method. The originalcancel
method delegates tointernalCancel
which again was overridden by spring andhandleCancelation
was added there too.I think it should be save to remove the overridden
cancel
method and only keepinternalCancel
.WDYT?
The text was updated successfully, but these errors were encountered: