Skip to content
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

Open
fanste opened this issue Nov 25, 2022 · 4 comments
Open

Duplicate event: EurekaInstanceCanceledEvent #4140

fanste opened this issue Nov 25, 2022 · 4 comments

Comments

@fanste
Copy link

fanste commented Nov 25, 2022

Describe the bug
An application that actively unregisters from eureka fires EurekaInstanceCanceledEvent twice.
image

The REST endpoint for unregister is executed. The first event is fired, as handleCancelation was added directly to the overridden cancel method. The original cancel method delegates to internalCancel which again was overridden by spring and handleCancelation was added there too.

I think it should be save to remove the overridden cancel method and only keep internalCancel.
WDYT?

@spencergibb
Copy link
Member

is it causing a problem?

@spring-cloud-issues
Copy link

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.

@fanste
Copy link
Author

fanste commented Mar 13, 2023

is it causing a problem?

You can workaround the duplicated event using an own collection to track the active instances.
But it's not nice, that the event is fired twice.

@heowc
Copy link
Contributor

heowc commented May 2, 2024

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.
(Perhaps cancel?)

WDYT? 🤔

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants