Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-97: wait at least leaseDuration to acquire the lock
Fixes #97 This fixes an issue where `additionalTimeToWait` has a negative value that is subtracted later by the Amazon DynamoDB client to `leaseDuration`, making it impossible to acquire the lock if expired. Also allow to use the existing `refreshPeriod` properties in this case. * Use default refresh period in tryLock() The 'refreshPeriod' value might not satisfy both tryLock() and lock() requirements and should probably be used exclusively in the second case. We can make the value used for tryLock() configurable as well in another pull request. * Rollback previous commit and add author name
- Loading branch information