-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Cherry-pick check titandb directory when titan is disabled #5720
Conversation
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
Please do not merge it until we release v3.0.5 |
/run-all-tests |
let cache = self.cfg.storage.block_cache.build_shared_cache(); | ||
let kv_db_opt = self.cfg.rocksdb.build_opt(); | ||
let kv_cfs_opt = self.cfg.rocksdb.build_cf_opts(&cache); | ||
let engine = Arc::new( | ||
rocks::util::new_engine_opt(kv_path.to_str().unwrap(), kv_db_opt, kv_cfs_opt) | ||
.unwrap(), | ||
); | ||
let raft_path = dir.path().join(Path::new("raft")); | ||
let raft_path = dir.path().join("raft"); |
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.
what's the differance?
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.
No difference, can remove the Path
dependency now. And also more consistent.
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
Sorry @Connor1996, you don't have permission to trigger auto merge event on this branch. |
/run-all-tests |
/merge |
Your auto merge job has been accepted, waiting for 5895, 5918, 5913, 5863, 5929, 5923 |
/run-all-tests |
Signed-off-by: tabokie xy.tao@outlook.com
What have you changed?
Check titandb directory is empty (
ls *.blob
count = 0) when titan is disabled. Fatal panic if this check fails, which indicates titan is turned off before all blob files are merged.What is the type of the changes?
How is the PR tested?
Does this PR affect documentation (docs) or should it be mentioned in the release notes?
Does this PR affect
tidb-ansible
?Refer to a related PR or issue link (optional)
Benchmark result if necessary (optional)
Any examples? (optional)