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: potential deadlock #3930

Merged
merged 1 commit into from
May 14, 2024
Merged

fix: potential deadlock #3930

merged 1 commit into from
May 14, 2024

Conversation

WenyXu
Copy link
Member

@WenyXu WenyXu commented May 14, 2024

I hereby agree to the terms of the GreptimeDB CLA.

Refer to a related PR or issue link (optional)

What's changed and what's your intention?

fix potential deadlock
see also: https://doc.rust-lang.org/std/sync/struct.RwLock.html

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.
  • This PR does not require documentation updates.

@WenyXu WenyXu requested a review from v0y4g3r as a code owner May 14, 2024 02:50
@github-actions github-actions bot added the docs-not-required This change does not impact docs. label May 14, 2024
@WenyXu WenyXu requested a review from fengjiachun May 14, 2024 02:51
Copy link
Contributor

@killme2008 killme2008 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! LGTM

@tisonkun tisonkun changed the title fix: fix potential deadlock fix: potential deadlock May 14, 2024
Copy link
Contributor

@tisonkun tisonkun 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!

@tisonkun tisonkun enabled auto-merge May 14, 2024 02:59
@tisonkun tisonkun added this pull request to the merge queue May 14, 2024
Copy link

codecov bot commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.48%. Comparing base (494ce65) to head (9fb1e02).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3930      +/-   ##
==========================================
- Coverage   85.79%   85.48%   -0.32%     
==========================================
  Files         964      964              
  Lines      165048   165047       -1     
==========================================
- Hits       141608   141093     -515     
- Misses      23440    23954     +514     

Copy link
Collaborator

@fengjiachun fengjiachun left a comment

Choose a reason for hiding this comment

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

LVGTM

Merged via the queue into GreptimeTeam:main with commit 00e21e2 May 14, 2024
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs-not-required This change does not impact docs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants