-
Notifications
You must be signed in to change notification settings - Fork 409
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
Support multi-disks for RegionPersister #1199
Support multi-disks for RegionPersister #1199
Conversation
64a52fb
to
2744864
Compare
Signed-off-by: JaySon-Huang <tshent@qq.com>
1970231
to
20fe0d6
Compare
/run-all-tests |
dbms/src/Storages/PathPool.cpp
Outdated
auto p = Poco::Path{s + "/kvstore"}.toString(); | ||
if (p.back() == '/') | ||
p.erase(p.begin() + p.size() - 1); |
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.
Please put those lines into a function and call it. So do other places.
/rebuild |
/run-all-tests |
/run-all-tests |
@@ -245,6 +269,12 @@ TiFlashRaftConfig::TiFlashRaftConfig(const std::string & path, Poco::Util::Layer | |||
ErrorCodes::INVALID_CONFIG_PARAMETER); | |||
disable_bg_flush = true; | |||
} | |||
|
|||
// just for test | |||
if (config.has("raft.enable_compatibility_mode")) |
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.
if (config.has("raft.enable_compatibility_mode")) | |
if (config.has("raft.enable_compatible_mode")) |
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.
OK, will solve it in the next PR.
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 with minor comment
Signed-off-by: JaySon-Huang tshent@qq.com
What problem does this PR solve?
Issue Number: a part of #1128
Problem Summary:
What is changed and how it works?
PSDiskDelegatorRaft
for managing the disks of Raft datalatest_data_path
DB::stable::PageStorage
)DB::PageStorage
DB::PageStorage
Related changes
Check List
Tests
Side effects
Release note