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

fix(manifest): fix manifest corruption due to race condition in concurrent compactions (#1756) #1820

Merged
merged 4 commits into from
Nov 3, 2022

Conversation

joshua-goldstein
Copy link
Contributor

This PR is a cherry pick of #1756. Addresses this issue on Discuss and this issue on Badger.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ joshua-goldstein
❌ iluminae
You have signed the CLA already but the status is still pending? Let us recheck it.

@joshua-goldstein
Copy link
Contributor Author

joshua-goldstein commented Oct 18, 2022

@skrdgraph The CI jobs are not running because this needs to be merged into release/v3.2103 (not main)... Can we update the CI workflow to allow the jobs to run when a PR is opened against a release branch? See #1821

@joshua-goldstein joshua-goldstein marked this pull request as ready for review October 18, 2022 22:45
@joshua-goldstein
Copy link
Contributor Author

@skrdgraph It would be good to get the CI jobs to run against branch before merging, I have another open PR here that should get the jobs to run: #1821

iluminae and others added 3 commits November 3, 2022 17:52
…rrent compactions (#1756)

`manifestFile.rewrite` closes the file due to which `manifest.fp.Sync()` can fail. This leads to an updated manifest but non-updated tables set. Hence, the compaction process enters into an infinite loop failing with the `MANIFEST removes non-existing table` error.
This PR fixes it.

(cherry picked from commit 6ed45ae)
@skrdgraph skrdgraph merged commit 14dc96a into release/v3.2103 Nov 3, 2022
@skrdgraph skrdgraph deleted the joshua/update-release branch November 3, 2022 22:56
@coveralls
Copy link

coveralls commented Nov 3, 2022

Coverage Status

Coverage decreased (-21.5%) to 48.329% when pulling c3f95a6 on joshua/update-release into 1a98996 on release/v3.2103.

mangalaman93 pushed a commit that referenced this pull request Feb 14, 2023
…rrent compactions (#1756) (#1820)

This PR is a cherry pick of #1756. Addresses [this
issue](https://discuss.dgraph.io/t/badgerdb-manifest-corruption-issue-solution/15915)
on Discuss and[ this
issue](#1819) on Badger.

Co-authored-by: Kenan Kessler <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

6 participants