You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw your implementation and i am concerned from some scenarios.
When the auto extend timer gets to starvation from any reason and then when the timer is released another process locks the same key, then the extend gets to conflict but it still tries to acquire the lock on the next interval and might succeed so the client (code) will never know that someone else took hold of the key in the mean time?
Same as the first only the extend only tries to acquire the key after the second process takes hold and already release the key, so we don't event know there was a conflict
My suggestion to overcome this issue is to only try and auto extend the lock in between expiry / 2 until expiry, so the key can't be extended if the key already expired
What do you think?
The text was updated successfully, but these errors were encountered:
Hey,
I saw your implementation and i am concerned from some scenarios.
What do you think?
The text was updated successfully, but these errors were encountered: