Skip to content

Fix retry race condition that can lead to double decrementing inFlightSubStreams and so miss calling closed (1.61.x backport) #11035

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

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

larry-safran
Copy link
Contributor

Future.cancel can return true when the executable has started, but the future value hasn't yet been set which was causing us to do an extra decrement. That is what was causing DriveSimControllerRuleTest to fail with the first attempt to fix the retry deadlock.

Backport of #11026

@larry-safran larry-safran requested a review from temawi March 22, 2024 17:14
@larry-safran larry-safran merged commit 87a3b15 into grpc:v1.61.x Mar 22, 2024
@larry-safran larry-safran deleted the backport-retry_2-1.61 branch March 22, 2024 17:58
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants