-
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
gc: support multi-rocksdb in compaction filter #13228
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
911c76d
to
cfef760
Compare
/run-test |
/run-test |
cfef760
to
d7d0629
Compare
/cc @tabokie |
cc @tabokie |
0c21dab
to
b5c915c
Compare
b5c915c
to
028e39d
Compare
974ebed
to
c4258d4
Compare
/run-clippy-linux-arm64 |
/run-test retry=7 |
1 similar comment
/run-test retry=7 |
let ops = DbOptions::default(); | ||
let path = Builder::new() | ||
.prefix("test_gc_keys_with_region_info_provider") | ||
.tempdir() |
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.
All the usage of tempdir is incorrect. Because when the Tempdir
object goes out of scope, the directory will be automatically deleted, and the engine data will be lost too.
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 you said is right. I have corrected other occurrence for path construction except for prepare_gc(). At prepare_gc() invocation time, engine is ready (passed as one parameter), so the temp dir dropping is ok. It's just a skeleton for factory construction, while the factory won't really create any rocksdb later and is only for storing the registry of <<region_id, suffix_id>, rocksdb> in GC_Context.
@@ -167,6 +168,7 @@ fn do_gc( | |||
} | |||
|
|||
#[test] | |||
#[cfg(not(feature = "test-engines-panic"))] |
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.
Why not test-engine-kv-rocksdb
. The problem with test-engines-panic
is, the build will still fail if we uses --features test-engine-kv-panic,test-engine-raft-rocksdb
or --features test-engines-another-kind-of-engine
.
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.
It seems I can't express that way. When ENABLE_FEATURES is not set by default, config predicate feature=test-engine-kv-rocksdb won't be satisfied either.
Signed-off-by: BornChanger <dawn_catcher@126.com>
Signed-off-by: BornChanger <dawn_catcher@126.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
…ocksdb 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>
39cfbbd
to
43f252b
Compare
Signed-off-by: tabokie <xy.tao@outlook.com>
Signed-off-by: tabokie <xy.tao@outlook.com>
…ocksdb 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: Xinye Tao <xy.tao@outlook.com>
@BornChanger: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Superseded by #13982. |
Signed-off-by: BornChanger dawn_catcher@126.com
What is changed and how it works?
Issue Number: Close #13131
What's Changed:
Related changes
pingcap/docs
/pingcap/docs-cn
:Check List
Tests
Release note