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 CatchupRequest to engine #2939

Merged

Conversation

WenyXu
Copy link
Member

@WenyXu WenyXu commented Dec 15, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

Add CatchupRequest; it makes a readonly region to catch up to leader region changes.

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)

#2700

Copy link

codecov bot commented Dec 15, 2023

Codecov Report

Attention: 14 lines in your changes are missing coverage. Please review.

Comparison is base (9da1f23) 85.82% compared to head (5f5264c) 85.37%.
Report is 3 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2939      +/-   ##
===========================================
- Coverage    85.82%   85.37%   -0.45%     
===========================================
  Files          775      777       +2     
  Lines       124230   125219     +989     
===========================================
+ Hits        106621   106910     +289     
- Misses       17609    18309     +700     

@WenyXu WenyXu self-assigned this Dec 15, 2023
@WenyXu WenyXu requested a review from v0y4g3r December 15, 2023 04:11
@WenyXu WenyXu force-pushed the feat/mito-handle-upgrade-candidate branch 2 times, most recently from 202a620 to 919f71d Compare December 15, 2023 07:51
src/file-engine/src/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/mito2/src/worker.rs Outdated Show resolved Hide resolved
@WenyXu WenyXu marked this pull request as draft December 18, 2023 08:27
@WenyXu WenyXu force-pushed the feat/mito-handle-upgrade-candidate branch from 1f2d1ab to bc962d6 Compare December 19, 2023 07:52
@WenyXu WenyXu changed the title feat: add set_writable_gracefully for engine feat: add CatchupRequest to engine Dec 19, 2023
@WenyXu WenyXu force-pushed the feat/mito-handle-upgrade-candidate branch 5 times, most recently from b2757ae to 206982c Compare December 20, 2023 04:08
@WenyXu WenyXu marked this pull request as ready for review December 20, 2023 04:08
@WenyXu
Copy link
Member Author

WenyXu commented Dec 20, 2023

@MichaelScofield @evenyag PTAL

@WenyXu WenyXu force-pushed the feat/mito-handle-upgrade-candidate branch 3 times, most recently from 0da0b6a to a961a00 Compare December 20, 2023 07:11
src/mito2/src/manifest/manager.rs Outdated Show resolved Hide resolved
src/mito2/src/region/opener.rs Show resolved Hide resolved
src/mito2/src/region/opener.rs Show resolved Hide resolved
src/mito2/src/request.rs Show resolved Hide resolved
src/mito2/src/worker/handle_catchup.rs Show resolved Hide resolved
@WenyXu WenyXu force-pushed the feat/mito-handle-upgrade-candidate branch from a961a00 to 2c57764 Compare December 20, 2023 10:17
@WenyXu
Copy link
Member Author

WenyXu commented Dec 20, 2023

@MichaelScofield @evenyag PTAL

src/mito2/src/error.rs Outdated Show resolved Hide resolved
src/mito2/src/region/opener.rs Outdated Show resolved Hide resolved
src/mito2/src/region/opener.rs Show resolved Hide resolved
src/mito2/src/region/opener.rs Outdated Show resolved Hide resolved
src/mito2/src/region/opener.rs Outdated Show resolved Hide resolved
src/mito2/src/region/opener.rs Outdated Show resolved Hide resolved
src/mito2/src/engine/catchup_test.rs Outdated Show resolved Hide resolved
src/mito2/src/manifest/manager.rs Outdated Show resolved Hide resolved
src/mito2/src/worker/handle_catchup.rs Outdated Show resolved Hide resolved
src/mito2/src/worker/handle_catchup.rs Show resolved Hide resolved
@WenyXu WenyXu force-pushed the feat/mito-handle-upgrade-candidate branch 2 times, most recently from 07d5c0f to bb4c21a Compare December 21, 2023 04:21
@WenyXu
Copy link
Member Author

WenyXu commented Dec 21, 2023

@MichaelScofield @evenyag PTAL

@WenyXu WenyXu force-pushed the feat/mito-handle-upgrade-candidate branch from bb4c21a to 981c306 Compare December 21, 2023 04:25
src/mito2/src/region/opener.rs Outdated Show resolved Hide resolved
src/mito2/src/worker/handle_catchup.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.

LGTM

@MichaelScofield MichaelScofield added this pull request to the merge queue Dec 21, 2023
Merged via the queue into GreptimeTeam:develop with commit ff8c10e Dec 21, 2023
13 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.

3 participants