Skip to content

Fix flush picking non-consecutive memtables - #10921

Closed
ajkr wants to merge 3 commits into
meta:mainfrom
ajkr:fix-flush-picking-non-consecutive-memtables
Closed

ajkr wants to merge 3 commits into
meta:mainfrom
ajkr:fix-flush-picking-non-consecutive-memtables

Conversation

@ajkr

@ajkr ajkr commented Nov 4, 2022

Copy link
Copy Markdown
Contributor

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

Test Plan: fix the expectation in the existing test of this behavior

@ajkr ajkr changed the title Fix flush picking non consecutive memtables Fix flush picking non-consecutive memtables Nov 4, 2022
@ajkr
ajkr force-pushed the fix-flush-picking-non-consecutive-memtables branch from b113110 to 96adb16 Compare November 4, 2022 21:12
@ajkr
ajkr requested a review from riversand963 November 4, 2022 21:13
@facebook-github-bot

Copy link
Copy Markdown
Contributor

@ajkr has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@riversand963

Copy link
Copy Markdown
Contributor

Thanks @ajkr for the fix!

@ajkr

ajkr commented Nov 4, 2022

Copy link
Copy Markdown
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 meta/rocksdb#25 with seqno 320416 368066 vs. file meta/rocksdb#24 with seqno 336037 352068
```

Pull Request resolved: meta/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
Tim-Reed pushed a commit to Tim-Reed/rocksdb that referenced this pull request Oct 1, 2026
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 meta#25 with seqno 320416 368066 vs. file meta#24 with seqno 336037 352068
```

Pull Request resolved: meta#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants