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: operating region guards should be dropped when procedure is done #3775

Conversation

MichaelScofield
Copy link
Collaborator

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?

Same as #3771, there're data race in creating table procedure.

Other two places that use this operating region guard are drop database procedure and region migration procedure. However, due to the different way of how their procedures are implemented, they are not affected. An interesting side effect.

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.

@MichaelScofield MichaelScofield requested a review from a team as a code owner April 23, 2024 05:13
@github-actions github-actions bot added the docs-not-required This change does not impact docs. label Apr 23, 2024
Copy link

codecov bot commented Apr 23, 2024

Codecov Report

Attention: Patch coverage is 88.23529% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 85.19%. Comparing base (96c01a3) to head (5ffc536).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3775      +/-   ##
==========================================
- Coverage   85.54%   85.19%   -0.36%     
==========================================
  Files         946      946              
  Lines      159575   159590      +15     
==========================================
- Hits       136514   135962     -552     
- Misses      23061    23628     +567     

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.

LGTM

@fengjiachun fengjiachun added this pull request to the merge queue Apr 23, 2024
Merged via the queue into GreptimeTeam:main with commit 19a9035 Apr 23, 2024
18 checks passed
@MichaelScofield MichaelScofield deleted the fix/create-table-operating-region-guard-data-race branch April 23, 2024 06:37
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.

3 participants