-
Notifications
You must be signed in to change notification settings - Fork 312
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: migrate local WAL regions #4715
feat: migrate local WAL regions #4715
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe changes primarily involve updates to dependency versions, modifications of timeout parameters, and enhancements to error handling across various files. Notable alterations include the introduction of new fields in structs, renaming of parameters for clarity, and the addition of new methods to improve functionality. The overall focus is on refining control flow, enhancing testing capabilities, and ensuring better management of resource handling and timeout behaviors. Changes
Suggested reviewers
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
5f551c9
to
dda6e00
Compare
dda6e00
to
e869d1f
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4715 +/- ##
==========================================
- Coverage 84.68% 84.41% -0.27%
==========================================
Files 1118 1118
Lines 202399 202454 +55
==========================================
- Hits 171393 170911 -482
- Misses 31006 31543 +537 |
c5d9aca
to
42ff7b9
Compare
438298f
to
2a7c96b
Compare
2a7c96b
to
a6e52ac
Compare
src/meta-srv/src/procedure/region_migration/downgrade_leader_region.rs
Outdated
Show resolved
Hide resolved
Why allow migrating regions that use local WAL, won't it cause data loss? |
Yes, But we can leave this trade off to users. |
@coderabbitai summary |
Actions performedSummary regeneration triggered. |
src/meta-srv/src/procedure/region_migration/downgrade_leader_region.rs
Outdated
Show resolved
Hide resolved
src/meta-srv/src/procedure/region_migration/upgrade_candidate_region.rs
Outdated
Show resolved
Hide resolved
src/meta-srv/src/procedure/region_migration/upgrade_candidate_region.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM
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?
Checklist
Summary by CodeRabbit
New Features
flush_timeout
field for enhanced control over region downgrades.is_remote_wal
method to check if the provider is a remote Write-Ahead Log (WAL).Improvements
Bug Fixes
Tests