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

ZOOKEEPER-4858: Remove the lock contention between snapshotting and the sync operation #2185

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

li4wang
Copy link
Contributor

@li4wang li4wang commented Sep 7, 2024

Author: Li Wang [email protected]

@li4wang
Copy link
Contributor Author

li4wang commented Sep 12, 2024

@eolivelli can I get a review for this? Thanks

Copy link
Contributor

@anmolnar anmolnar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are u sure it's safe just removing it?
takeSnapshot and restoreSnapshot should be two mutually exclusive operation, you probably need to introduce some more specific lock mechanism to avoid object-level locking.

@li4wang
Copy link
Contributor Author

li4wang commented Oct 16, 2024

Thanks for reviewing it, @anmolnar.

Yes, we would still want exclusive locking between snapshot and restore to make sure data tree is not replaced by restoring operation while snapshotting is in progress.

@li4wang
Copy link
Contributor Author

li4wang commented Oct 16, 2024

added a specific lock just for snapshot and restore operations. @anmolnar would you mind taking a look at it. Thanks.

@li4wang
Copy link
Contributor Author

li4wang commented Oct 21, 2024

@anmolnar I've addressed your comment. Can you take a quick look at it? Thanks.

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