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: deadlock in StopFetch #424

Merged
merged 2 commits into from
May 22, 2024
Merged

fix: deadlock in StopFetch #424

merged 2 commits into from
May 22, 2024

Conversation

cool-develope
Copy link
Collaborator

Context

Fix the deadlock, the bug case:
If the BatchHeaders is full, the fetcher is locked in the channel pushing, it never touch the ctx.Done() even StopFetch triggers.


Reviewers

@cool-develope cool-develope requested a review from a team as a code owner May 22, 2024 16:30
Copy link
Contributor

@mastereng12 mastereng12 left a comment

Choose a reason for hiding this comment

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

good catch!

@mastereng12 mastereng12 merged commit 57906c2 into develop May 22, 2024
3 checks passed
@mastereng12 mastereng12 deleted the fix/deadlock_rpc branch May 22, 2024 16:35
@mastereng12
Copy link
Contributor

@Mergifyio backport release/v0.3.x

Copy link
Contributor

mergify bot commented May 22, 2024

backport release/v0.3.x

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request May 22, 2024
(cherry picked from commit 57906c2)
mastereng12 pushed a commit that referenced this pull request May 22, 2024
Co-authored-by: cool-developer <51834436+cool-develope@users.noreply.github.com>
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