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

feat: add set_readonly_gracefully for engine #2787

Merged
merged 4 commits into from
Nov 24, 2023

Conversation

WenyXu
Copy link
Member

@WenyXu WenyXu commented Nov 21, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

The set_readonly_gracefully method sets a read-only flag for a region and ensures no more write operations will succeed after it returns.

Checklist

  • I have written the necessary rustdoc comments.
  • I have added the necessary unit tests and integration tests.

Refer to a related PR or issue link (optional)

@WenyXu WenyXu force-pushed the feat/region-set-readonly branch from 1f60090 to 18f2217 Compare November 21, 2023 08:47
@WenyXu WenyXu self-assigned this Nov 21, 2023
Copy link

codecov bot commented Nov 21, 2023

Codecov Report

Merging #2787 (589188d) into develop (56fc77e) will decrease coverage by 0.10%.
Report is 4 commits behind head on develop.
The diff coverage is 83.57%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2787      +/-   ##
===========================================
- Coverage    84.48%   84.39%   -0.10%     
===========================================
  Files          729      731       +2     
  Lines       113510   113930     +420     
===========================================
+ Hits         95899    96148     +249     
- Misses       17611    17782     +171     

src/store-api/src/region_engine.rs Outdated Show resolved Hide resolved
src/mito2/src/worker.rs Outdated Show resolved Hide resolved
src/mito2/src/worker.rs Outdated Show resolved Hide resolved
src/store-api/src/region_engine.rs Outdated Show resolved Hide resolved
src/mito2/src/request.rs Outdated Show resolved Hide resolved
src/mito2/src/engine.rs Outdated Show resolved Hide resolved
src/mito2/src/engine/internal_command_test.rs Outdated Show resolved Hide resolved
@WenyXu WenyXu marked this pull request as draft November 23, 2023 02:22
src/mito2/src/worker.rs Outdated Show resolved Hide resolved
@WenyXu WenyXu force-pushed the feat/region-set-readonly branch from 18f2217 to 058f354 Compare November 23, 2023 06:39
@WenyXu WenyXu force-pushed the feat/region-set-readonly branch from 058f354 to 2cdaad3 Compare November 23, 2023 06:40
@WenyXu WenyXu marked this pull request as ready for review November 23, 2023 06:49
src/mito2/src/engine.rs Outdated Show resolved Hide resolved
src/mito2/src/engine.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@evenyag evenyag left a comment

Choose a reason for hiding this comment

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

Rest LGTM.

@killme2008 killme2008 requested a review from waynexia November 24, 2023 06:43
src/file-engine/src/engine.rs Outdated Show resolved Hide resolved
src/file-engine/src/engine.rs Outdated Show resolved Hide resolved
@MichaelScofield MichaelScofield added this pull request to the merge queue Nov 24, 2023
Merged via the queue into GreptimeTeam:develop with commit 9e58bba Nov 24, 2023
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

5 participants