-
Notifications
You must be signed in to change notification settings - Fork 328
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: allow physical region alter region options #5046
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 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
|
5385bcb
to
b9046f1
Compare
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.
LGTM, thanks @lyang24
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.
Sorry, I forget one thing. The alter request must be processed by the underlying physical region (mito region) as well. Otherwise it's only presented in metasrv and causing inconsistency.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5046 +/- ##
==========================================
- Coverage 84.00% 83.78% -0.23%
==========================================
Files 1156 1156
Lines 216244 216327 +83
==========================================
- Hits 181663 181251 -412
- Misses 34581 35076 +495 |
46113d0
to
a83071e
Compare
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.
LGTM, It would be perfect if you could add a test_alter_column_ttl_options
test in the mito crate.
a83071e
to
5faf2f4
Compare
Hi I added a test but I noticed the ttl did not persist after region restart. Can you help me understand with if its my test structure (region metadata not flushed?) or its a bug. |
9d54adf
to
ecadb3a
Compare
@lyang24 Could you please rebase this branch with the main branch? There is a typo config issue. |
b3f0b7e
to
e59ce45
Compare
@waynexia Please take a look. |
thank you |
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.
LGTM, this change won't affect metadata region.
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
#5042
What's changed and what's your intention?
!!! DO NOT LEAVE THIS BLOCK EMPTY !!!
Please explain IN DETAIL what the changes are in this PR and why they are needed:
allow set and unset of region options in alter physical region request.
allow Alter/ unset region options by passing the request to DataNode's mito engine.
Checklist