awslabs / amazon-dynamodb-lock-client

The AmazonDynamoDBLockClient is a general purpose distributed locking library built on top of DynamoDB. It supports both coarse-grained and fine-grained locking.
Other
472 stars 85 forks source link

Fix: ShouldSkipBlockingWait should still acquire a dead lock if tried for longer than TTL #99

Open moshegood opened 7 months ago

moshegood commented 7 months ago

Issue 44

Description of changes: When a lock is not acquired because the ShouldSkipBlockingWait has been set, we cache the data pulled from DynamoDB. In future calls, if the recordVersion matches the cached version, we check is the cached version to see if it is expired rather than the freshly pulled copy, as the freshly pulled copy will never be expired.