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

MB-61421: Prevent deletion of segments scheduled for copy (#2032) #2046

Merged
merged 3 commits into from
Jun 25, 2024

Conversation

abhinavdangeti
Copy link
Member

  • Use a modified index reader, CopyReader, to mark segments in the Scorch root for online copy/backup operations. This prevents their deletion by the asynchronous cleanup routine during the copy/backup process, thereby mitigating the race condition between the merger/persistor and the copy/backup routine.

Backports: #2032

- Use a modified index reader, CopyReader, to mark segments in the
Scorch root for online copy/backup operations. This prevents their
deletion by the asynchronous cleanup routine during the copy/backup
process, thereby mitigating the race condition between the
merger/persistor and the copy/backup routine.

---------

Co-authored-by: Abhinav Dangeti <abhinav@couchbase.com>
+ Test(s) in this file hang on my computer and it seems they've started
hanging on the workflow jobs as well.
@abhinavdangeti abhinavdangeti merged commit fdaed7b into 7.2-couchbase Jun 25, 2024
9 checks passed
@abhinavdangeti abhinavdangeti deleted the mb61421_bp branch June 25, 2024 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants