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

Identify lock owners with UUIDs to ensure exclusive refreshing #3

Open
darinspivey opened this issue Jun 23, 2022 · 0 comments
Open

Comments

@darinspivey
Copy link
Collaborator

Per the initial PR, there is no guarantees that the instance refreshing the lock is the real owner: #2 (comment)

To solve this, we would need to keep state of the locks with UUIDs, etc. The problem is that we lose atomicity since redis/keydb does not have a check-and-set functionality. A lua script could be used, but that comes at a performance cost of stopping all other commands, so on something that's potentially refreshing a lot, this may be significant.

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

No branches or pull requests

1 participant