amazon-dynamodb-lock-client icon indicating copy to clipboard operation
amazon-dynamodb-lock-client copied to clipboard

Fix: Lock can be acquired after lease duration if the current owner has been terminated unexpectedly when using skipBlockingWait=true

Open chris-ryan-square opened this issue 3 years ago • 0 comments

Issue #, if available: 44

Description of changes:

This solves the problem with the issue raised, allowing skipBlockingWait flag to be used safely. It tracks the "lookupTime" for the lock to handle if another client that has the lock has been terminated unexpectedly - and therefore can't update the lock itself.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

chris-ryan-square avatar May 26 '22 03:05 chris-ryan-square