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 extension failure #273

Closed
wants to merge 2 commits into from

Conversation

arath17
Copy link
Contributor

@arath17 arath17 commented Mar 9, 2023

#169

Expiration time of the lock is calculated by adding duration of lock on start time but start time in the code is the time when acquiring of lock is attempted for the first time. Expiration time becomes too early, hence causing the failure in extension of locks.

@mike-marcacci I saw PR: #167 where you've mentioned that the expiration time should be same or early than the one in redis. This PR will keep lock's expiration time as close to the redis expiration but never later

@arath17 arath17 force-pushed the fix-extension-failure branch from d18e76e to 5f158ec Compare March 10, 2023 11:37
@arath17 arath17 closed this Mar 10, 2023
@arath17 arath17 deleted the fix-extension-failure branch March 10, 2023 16:37
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.

1 participant