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

core: fix test flakiness in retriableStream hedging deadlock test #11606

Merged

Conversation

YifeiZhuang
Copy link
Contributor

The rootcause is reentrant lock has more than one hold count. In this case, lock1 is held when stream4 is created within sublistener.closed callback. It can just be released, no tryLock(), which increment the lock hold count in the current thread, and prevent thread1 from acquiring lock1.

Tested with blaze test --runs_per_test=100:
http://sponge2/caeee424-089f-456e-99de-eb82a35558ba

cc. @ejona86

@YifeiZhuang YifeiZhuang merged commit 2129078 into grpc:master Oct 9, 2024
14 of 15 checks passed
@YifeiZhuang YifeiZhuang deleted the fix-retryablestream-test-flaky-deadlock branch October 9, 2024 00:44
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.

2 participants