Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix flaky test post final DB::DeleteFile refactoring (#13349)
Summary: `DynamicLevelCompressionPerLevel` test started _somewhat occasionally_ failing post refactoring in #13322. In order for `DeleteFilesInRange`-replacement to behave according to our expectations (that is delete exactly that very single file given its' key range), we must first ensure that input `keys` are NOT randomly shuffled, but rather preserved in their natural, sequential order. That change was originally a part of the PR, but got somehow deleted due to human error and since tests passed locally and in CI, spilled unnoticed. We're removing random keys reshuffling (as intended originally) and, in addition, asserting that all such constructed files are 1) non-overlapping and 2) contain full range of keys BEFORE we actually get to test the on table deletion callbacks. Pull Request resolved: #13349 Test Plan: Confirmed that key range overlap is an issue by volume testing: `./db_test --gtest_filter=*DynamicLevelCompressionPerLevel --gtest_repeat=1000 --gtest_break_on_failure` (2-3 times is enough). Could not longer repro after the fix. Reviewed By: jaykorean Differential Revision: D68857018 Pulled By: mszeszko-meta fbshipit-source-id: 873b1ba44f32d40192da4265aeeb39702c22a1d0
- Loading branch information