-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Rocksdb manual flush code changes #11849
base: main
Are you sure you want to change the base?
Conversation
Result of foundationdb-pr-clang-ide on Linux CentOS 7
|
Result of foundationdb-pr on Linux CentOS 7
|
Result of foundationdb-pr-clang on Linux CentOS 7
|
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
08a49f1
to
085cf86
Compare
Result of foundationdb-pr-clang-ide on Linux CentOS 7
|
Result of foundationdb-pr-macos-m1 on macOS Ventura 13.x
|
Result of foundationdb-pr-clang-arm on Linux CentOS 7
|
Result of foundationdb-pr-macos on macOS Ventura 13.x
|
Result of foundationdb-pr-cluster-tests on Linux CentOS 7
|
Result of foundationdb-pr-clang on Linux CentOS 7
|
Result of foundationdb-pr on Linux CentOS 7
|
@@ -107,6 +107,8 @@ class SharedRocksDBState { | |||
rocksdb::Options getOptions() const { return rocksdb::Options(this->dbOptions, this->cfOptions); } | |||
rocksdb::ReadOptions getReadOptions() { return this->readOptions; } | |||
rocksdb::FlushOptions getFlushOptions() { return this->flushOptions; } | |||
double getLastFlushTime() { return this->lastFlushTime_; } |
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.
This method can be made const
if (g_network->isSimulated() && !SERVER_KNOBS->ROCKSDB_METRICS_IN_SIMULATION) { | ||
waitTime = SERVER_KNOBS->ROCKSDB_MANUAL_FLUSH_TIME_INTERVAL; |
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.
Since this code is not related to metrics, can we rename ROCKSDB_METRICS_IN_SIMULATION
to something like ROCKSDB_ENABLE_NONDETERMINISM
? That way we have one catch all knob for anything related to rocksdb non determinism.
Rocksdb manual flush code changes
Code-Reviewer Section
The general pull request guidelines can be found here.
Please check each of the following things and check all boxes before accepting a PR.
For Release-Branches
If this PR is made against a release-branch, please also check the following:
release-branch
ormain
if this is the youngest branch)