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

[bug] stats: fix hang issue #17364

Merged
merged 2 commits into from
Jul 7, 2024
Merged

Conversation

volgariver6
Copy link
Contributor

@volgariver6 volgariver6 commented Jul 7, 2024

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #17365

What this PR does / why we need it:

When force to trigger the stats update, which will hang when the channel
is full, we should unlock first because another goroutine which fetches
items from the channel holds the lock.

@matrix-meow matrix-meow added the size/S Denotes a PR that changes [10,99] lines label Jul 7, 2024
@mergify mergify bot requested a review from sukki37 July 7, 2024 14:23
@mergify mergify bot added the kind/bug Something isn't working label Jul 7, 2024
@mergify mergify bot merged commit a0f75f6 into matrixorigin:1.2-dev Jul 7, 2024
18 checks passed
sukki37 pushed a commit that referenced this pull request Jul 9, 2024
When force to trigger the stats update, which will hang when the channel
is full, we should unlock first because another goroutine which fetches
items from the channel holds the lock.

Approved by: @XuPeng-SH, @sukki37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working size/S Denotes a PR that changes [10,99] lines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants