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

Check the ready status of component before it becomes reachable. #761

Merged
merged 1 commit into from
May 9, 2024

Conversation

spetrovic77
Copy link
Contributor

This fixes an situation where the component takes a while to initialize: previously, we were declaring the component as activated/healthy even during the pending init, resulting in subsequent method calls failing.

Thanks to rgrandl@ for debugging the issue.

Other changes:

  • Don't add a component to the routing info until it has been initialized. This fixes the health-checking situation where one component replica becomes healthy, but we subsequently send method calls to other replicas which fail.
  • Fix go vet in a couple of places.

This fixes an situation where the component takes a while to
initialize: previously, we were declaring the component as
activated/healthy even during the pending init, resulting in
subsequent method calls failing.

Thanks to rgrandl@ for debugging the issue.

Other changes:
  * Don't add a component to the routing info until it has been
    initialized. This fixes the health-checking situation where
    one component replica becomes healthy, but we subsequently
    send method calls to other replicas which fail.
  * Fix go vet in a couple of places.
Copy link
Member

@mwhittaker mwhittaker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very elegant!

@spetrovic77 spetrovic77 merged commit eafae6b into main May 9, 2024
10 checks passed
@spetrovic77 spetrovic77 deleted the wait branch May 9, 2024 21:36
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.

None yet

3 participants