Fix flush picking non-consecutive memtables#10921
Closed
ajkr wants to merge 3 commits intofacebook:mainfrom
Closed
Fix flush picking non-consecutive memtables#10921ajkr wants to merge 3 commits intofacebook:mainfrom
ajkr wants to merge 3 commits intofacebook:mainfrom
Conversation
b113110 to
96adb16
Compare
Contributor
|
@ajkr has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
riversand963
approved these changes
Nov 4, 2022
Contributor
|
Thanks @ajkr for the fix! |
Contributor
Author
|
Thanks for the review! |
ajkr
added a commit
that referenced
this pull request
Nov 24, 2022
Summary: Prevents `MemTableList::PickMemtablesToFlush()` from picking non-consecutive memtables. It leads to wrong ordering in L0 if the files are committed, or an error like below if force_consistency_checks=true catches it: ``` Corruption: force_consistency_checks: VersionBuilder: L0 file #25 with seqno 320416 368066 vs. file #24 with seqno 336037 352068 ``` Pull Request resolved: #10921 Test Plan: fix the expectation in the existing test of this behavior Reviewed By: riversand963 Differential Revision: D41046935 Pulled By: ajkr fbshipit-source-id: 783696bff56115063d5dc5856dfaed6a9881d1ab
ajkr
added a commit
that referenced
this pull request
Nov 24, 2022
Summary: Prevents `MemTableList::PickMemtablesToFlush()` from picking non-consecutive memtables. It leads to wrong ordering in L0 if the files are committed, or an error like below if force_consistency_checks=true catches it: ``` Corruption: force_consistency_checks: VersionBuilder: L0 file #25 with seqno 320416 368066 vs. file #24 with seqno 336037 352068 ``` Pull Request resolved: #10921 Test Plan: fix the expectation in the existing test of this behavior Reviewed By: riversand963 Differential Revision: D41046935 Pulled By: ajkr fbshipit-source-id: 783696bff56115063d5dc5856dfaed6a9881d1ab
Yuval-Ariel
pushed a commit
to speedb-io/speedb
that referenced
this pull request
Jan 11, 2023
Summary: Prevents `MemTableList::PickMemtablesToFlush()` from picking non-consecutive memtables. It leads to wrong ordering in L0 if the files are committed, or an error like below if force_consistency_checks=true catches it: ``` Corruption: force_consistency_checks: VersionBuilder: L0 file facebook/rocksdb#25 with seqno 320416 368066 vs. file facebook/rocksdb#24 with seqno 336037 352068 ``` Pull Request resolved: facebook/rocksdb#10921 Test Plan: fix the expectation in the existing test of this behavior Reviewed By: riversand963 Differential Revision: D41046935 Pulled By: ajkr fbshipit-source-id: 783696bff56115063d5dc5856dfaed6a9881d1ab
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prevents
MemTableList::PickMemtablesToFlush()from picking non-consecutive memtables. It leads to wrong ordering in L0 if the files are committed, or an error like below if force_consistency_checks=true catches it:Test Plan: fix the expectation in the existing test of this behavior