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

fix-bug: can not register again when heartbeat response 404 #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

darcydai
Copy link

@darcydai darcydai commented Aug 12, 2024

The main changes in the current PR are as follows:

  1. When the Eureka server crashes or encounters a network issue, the registration information on the Eureka server side will expire. When the client sends a heartbeat again, the server will return an HTTP 404 status code. Upon receiving this status code, the client will trigger a re-registration. This logic is present in the Java version.
  2. During the service startup, the Java client does not actually register with the status STARTING and then update to UP. Based on my debug verification of the Java version, it registers directly with the status UP. Therefore, registering and then modifying the status is meaningless.

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

Successfully merging this pull request may close these issues.

1 participant