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 calls throw TaskCanceledException after previous call is canceled #1664

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Apr 2, 2022

Fixes #1654

PR makes 3 changes:

  1. Fixes not resetting the picker TCS on cancellation. This caused TaskCanceledException after a previous call is canceled.
  2. Fixes deadline exceeded logged multiple times in the client.
  3. Makes some minor changes to state watcher. User supplied logs include error An attempt was made to transition a task to a final state when it had already completed. which I couldn't reproduce or understand, but I have some wild theories. Changing state watcher from record to class avoids chance of record equality messing things up. Also raise watcher TCS after removing.

@JamesNK JamesNK changed the title Fix calls thrown TaskCanceledException after previous call is canceled Fix calls throw TaskCanceledException after previous call is canceled Apr 2, 2022
@JamesNK JamesNK merged commit bbbfdc0 into grpc:master Apr 5, 2022
@JamesNK JamesNK deleted the jamesnk/loadbalancing-deadlineexceeded-taskcanceled branch April 5, 2022 23:35
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.

Error starting gRPC call. A task was canceled.
2 participants