Repository navigation
Conversation
Summary: Fsyncing files are not providing more test coverage in many tests. Provide an option in SpecialEnv to turn it off to speed it up and enable this option in some tests with relatively long run time. Test Plan: Run all tests and make sure they pass.
facebook-github-bot
left a comment
There was a problem hiding this comment.
@siying has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
ltamasi
left a comment
There was a problem hiding this comment.
Mostly LGTM, just a couple of comments/questions. Thanks!
| TEST_F(DBTest, HiddenValuesAreRemoved) { | ||
| anon::OptionsOverride options_override; | ||
| options_override.skip_policy = kSkipNoSnapshot; | ||
| env_->if_skip_fsync_ = true; |
There was a problem hiding this comment.
Maybe skip_fsync_ would be a better name?
| Status s; | ||
| if (!env_->if_skip_fsync_) { | ||
| s = base_->Sync(); | ||
| } |
There was a problem hiding this comment.
Just to confirm: do we still want to do the sleep here if the flag is set?
There was a problem hiding this comment.
I read the code and it feels that the sleep was to prevent any LSM-tree file change in some stage of some test cases. So I believe it is orthogonal to this fsync.
|
|
||
| std::atomic<int> sync_counter_; | ||
|
|
||
| // If true, all fsync to files are skipped. |
|
@siying has updated the pull request. Re-import the pull request |
facebook-github-bot
left a comment
There was a problem hiding this comment.
@siying has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
|
This pull request has been merged in 58547e5. |
Summary: After meta#7036, we still see extra DBTest that can timeout when running 10 or 20 in parallel. Expand skip-fsync mode in whole DBTest. Still preserve other tests from doing this mode to be conservative. Test Plan: Run all existing files.
Summary: After #7036, we still see extra DBTest that can timeout when running 10 or 20 in parallel. Expand skip-fsync mode in whole DBTest. Still preserve other tests from doing this mode to be conservative. Pull Request resolved: #7049 Test Plan: Run all existing files. Reviewed By: pdillinger Differential Revision: D22301700 fbshipit-source-id: f9a9e3b3b26ce640665a47cb8bff33ba0c89b565
Summary: After meta#7036, we still see extra DBTest that can timeout when running 10 or 20 in parallel. Expand skip-fsync mode in whole DBTest. Still preserve other tests from doing this mode to be conservative. This commit reinstates meta#7049, whose un-revert was lost in an automatic infrastructure mis-merge. Test Plan: Run all existing files. Reviewed By: pdillinger
Summary: After #7036, we still see extra DBTest that can timeout when running 10 or 20 in parallel. Expand skip-fsync mode in whole DBTest. Still preserve other tests from doing this mode to be conservative. This commit reinstates #7049, whose un-revert was lost in an automatic infrastructure mis-merge. Pull Request resolved: #7274 Test Plan: Run all existing files. Reviewed By: pdillinger Differential Revision: D23177444 fbshipit-source-id: 1f61690b2ac6333c3b2c87176fef6b2cba086b33
Summary: After meta#7036, we still see extra DBTest that can timeout when running 10 or 20 in parallel. Expand skip-fsync mode in whole DBTest. Still preserve other tests from doing this mode to be conservative. This commit reinstates meta#7049, whose un-revert was lost in an automatic infrastructure mis-merge. Pull Request resolved: meta#7274 Test Plan: Run all existing files. Reviewed By: pdillinger Differential Revision: D23177444 fbshipit-source-id: 1f61690b2ac6333c3b2c87176fef6b2cba086b33
Summary: Fsyncing files is not providing more test coverage in many tests. Provide an option in SpecialEnv to turn it off to speed it up and enable this option in some tests with relatively long run time. Most of those tests can be divided as parameterized gtest too. This two speed up approaches are orthogonal and we can do both if needed. Pull Request resolved: meta#7036 Test Plan: Run all tests and make sure they pass. Reviewed By: ltamasi Differential Revision: D22268084 fbshipit-source-id: 6d4a838a1b7328c13931a2a5d93de57aa02afaab
Summary: After meta#7036, we still see extra DBTest that can timeout when running 10 or 20 in parallel. Expand skip-fsync mode in whole DBTest. Still preserve other tests from doing this mode to be conservative. Pull Request resolved: meta#7049 Test Plan: Run all existing files. Reviewed By: pdillinger Differential Revision: D22301700 fbshipit-source-id: f9a9e3b3b26ce640665a47cb8bff33ba0c89b565
Summary: After meta#7036, we still see extra DBTest that can timeout when running 10 or 20 in parallel. Expand skip-fsync mode in whole DBTest. Still preserve other tests from doing this mode to be conservative. This commit reinstates meta#7049, whose un-revert was lost in an automatic infrastructure mis-merge. Pull Request resolved: meta#7274 Test Plan: Run all existing files. Reviewed By: pdillinger Differential Revision: D23177444 fbshipit-source-id: 1f61690b2ac6333c3b2c87176fef6b2cba086b33
Summary:
Fsyncing files is not providing more test coverage in many tests. Provide an option in SpecialEnv to turn it off to speed it up and enable this option in some tests with relatively long run time.
Most of those tests can be divided as parameterized gtest too. This two speed up approaches are orthogonal and we can do both if needed.
Test Plan: Run all tests and make sure they pass.