-
Notifications
You must be signed in to change notification settings - Fork 329
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: add slash after generated region_dir #2463
Conversation
Signed-off-by: Ruihang Xia <[email protected]>
@waynexia The unit test failed |
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.
verbose: We need always keep in mind all directory paths should end with /
Signed-off-by: Ruihang Xia <[email protected]>
We still need to sanitize the dir in mito2, as I mentioned in #2457 (comment) |
All region dir generated by this function will end with slash. There is no second method to concat it. Unless you direct give a random string as dir, which is neither possible nor viable to validate them all. |
I think we can normalize the path when creating or opening regions. Then it can cover all the cases using the normalized one instead of the raw path. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #2463 +/- ##
===========================================
- Coverage 84.83% 84.46% -0.37%
===========================================
Files 726 726
Lines 114995 114995
===========================================
- Hits 97551 97130 -421
- Misses 17444 17865 +421 |
This is related to the behavior of mito2. If |
* fix: add slash after generated region_dir Signed-off-by: Ruihang Xia <[email protected]> * update ut Signed-off-by: Ruihang Xia <[email protected]> --------- Signed-off-by: Ruihang Xia <[email protected]>
I hereby agree to the terms of the GreptimeDB CLA
What's changed and what's your intention?
Checklist
Refer to a related PR or issue link (optional)
closes #2457