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

grpc-js: Make pick_first use exitIdle #2619

Merged

Conversation

murgatroid99
Copy link
Member

This fixes the bug described in #1490 (comment). #2609 was introduced to prevent a busy loop when pick_first is in TRANSIENT_FAILURE, and the resolver always returns the result immediately. However, making the resolver only return once caused pick_first to never update after going from READY to IDLE when a connection drops. This fixes that by making exitIdle use the most recent address list. This will result in some wasted work if the address list is stale, but if exitIdle is called there should also be a resolver update pending, so it will be eventually consistent.

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

2 participants