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(mito): add skip_wal_replay option to OpenRegionRequest #2955

Merged

Conversation

WenyXu
Copy link
Member

@WenyXu WenyXu commented Dec 19, 2023

I hereby agree to the terms of the GreptimeDB CLA

What's changed and what's your intention?

The region migration will open the candidate region first(the engine opens the region without replaying the WAL, for now), then upgrade the candidate region to the leader region(catching up on the latest manifest and replaying the WAL).

BTW, the follower region does not automatically synchronize with the changes made to the leader region. The duration of the write-stop window during region migration will be reduced once this feature is implemented.

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 19, 2023

Codecov Report

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

Comparison is base (5f8c175) 85.80% compared to head (bd54869) 85.28%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2955      +/-   ##
===========================================
- Coverage    85.80%   85.28%   -0.52%     
===========================================
  Files          767      767              
  Lines       123633   123745     +112     
===========================================
- Hits        106086   105542     -544     
- Misses       17547    18203     +656     

@WenyXu WenyXu changed the title feat(mito): add skip_replay_wal option to OpenRegionRequest feat(mito): add skip_wal_replay option to OpenRegionRequest Dec 19, 2023
@WenyXu WenyXu force-pushed the feat/open-region-skip-replay-wal branch from 04fb774 to 9920efd Compare December 19, 2023 08:54
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

@WenyXu WenyXu force-pushed the feat/open-region-skip-replay-wal branch from 9920efd to bd54869 Compare December 20, 2023 03:07
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 Dec 20, 2023
Merged via the queue into GreptimeTeam:develop with commit 97c3755 Dec 20, 2023
13 checks passed
This pull request was closed.
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