You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eureka client on shutdown does not cancel all the scheduled tasks it has scheduled.
This may create a race-condition under which, the client may re-register with the server even after shutdown.
The race-condition lies in the Instance Info replication scheduled task which if there is a healthcheck handler registered with eureka, will re-register with the eureka server.
The fix is to cancel all the scheduled tasks at shutdown.
The text was updated successfully, but these errors were encountered:
1) Implementing clean shutdown of client. Moved away from Timer to ScheduledExecutorService as it gives better control of shutdown by interrupting the running thread, which is what we want.
2)
Eureka client on shutdown does not cancel all the scheduled tasks it has scheduled.
This may create a race-condition under which, the client may re-register with the server even after shutdown.
The race-condition lies in the Instance Info replication scheduled task which if there is a healthcheck handler registered with eureka, will re-register with the eureka server.
The fix is to cancel all the scheduled tasks at shutdown.
The text was updated successfully, but these errors were encountered: