Skip to content
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

Test PromoteL0() with no concurrent PromoteL0() in stress test #12648

Closed
wants to merge 1 commit into from

Conversation

hx235
Copy link
Contributor

@hx235 hx235 commented May 11, 2024

Context/Summary:

If any file on L0 that PromoteL0() called on were moved or deleted concurrently by another PromoteL0(), it will result and propagate to users the corruption Corruption: VersionBuilder: Cannot delete table file #13 from level 0 since it is on level 3 to users. Such corruption will fail any subsequent writes. While it's debatable whether we should let such failure in PromoteL0() fail any subsequent writes, the easiest fix for now is to test PromoteL0() without any concurrent PromoteL0().

Test:
CI that failed before this fix and pass after with equally frequent PromoteL0()

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

@hx235 has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

@hx235 has updated the pull request. You must reimport the pull request before landing.

@facebook-github-bot
Copy link
Contributor

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

@hx235 hx235 requested a review from pdillinger May 13, 2024 19:59
@hx235
Copy link
Contributor Author

hx235 commented May 13, 2024

Will need to turn back on PromoteL0

@hx235 hx235 changed the title Test PromoteL0() with no concurrent compactions in stress test Test PromoteL0() with no concurrent PromoteL0() in stress test May 13, 2024
@hx235
Copy link
Contributor Author

hx235 commented May 14, 2024

Close this since we plan to deprecate PromoteL0()

@hx235 hx235 closed this May 14, 2024
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.

None yet

2 participants