-
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
make rocksdb recovery mode configurable #1069
Conversation
# 1 : AbsoluteConsistency, We don't expect to find any corruption in the WAL; | ||
# 2 : PointInTimeRecovery, Recover to point-in-time consistency; | ||
# 3 : SkipAnyCorruptedRecords, Recovery after a disaster; | ||
wal-recovery-mode = 2 |
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 use AbsoluteConsistency?
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.
The default is 2, I think it is ok.
@@ -187,6 +187,15 @@ fn get_rocksdb_default_cf_option(matches: &Matches, config: &toml::Value) -> Roc | |||
let per_level_compression = util::config::parse_rocksdb_per_level_compression(&cpl).unwrap(); | |||
opts.compression_per_level(&per_level_compression); | |||
|
|||
let rmode = get_integer_value("", |
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.
Move this to L148 seems better.
@@ -52,6 +52,16 @@ pub fn parse_rocksdb_per_level_compression(tp: &str) | |||
Ok(result) | |||
} | |||
|
|||
pub fn parse_rocksdb_wal_recovery_mode(mode: i64) -> Result<DBRecoveryMode, ParseConfigError> { |
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.
add a test
CI failed, seem that we should update rocksdb version in travis too. @zhangjinpeng1987 |
Rest LGTM |
Need to merge master. |
…cksdb-recovery-mode
PTAL @BusyJay |
LGTM |
Signed-off-by: Ping Yu <[email protected]>
* fit get region option Signed-off-by: Cabinfever_B <[email protected]> * replace tidb Signed-off-by: Cabinfever_B <[email protected]> * replace tidb Signed-off-by: Cabinfever_B <[email protected]> --------- Signed-off-by: Cabinfever_B <[email protected]>
make rocksdb recovery mode configurable