Skip to content

tryLock() in DynamoDbLockRegistry cannot claim back expired locks #97

@karllessard

Description

@karllessard

See this thread for details.

Basically, the Amazon DynamoDBLock client will never wait long enough to validate that a key has expired.

Optionally, the logic could also be revisited so that 'tryLock()' never waits, as it is expected (not even for the leaseDuration). It should claim the lock if it does not exists. tryLock(time, unit) should be used if waiting is desired. Note that if this logic is changed, current Kinesis channel adapter in spring-cloud-stream must be updated accordingly to make use of tryLock(time, unit) instead

CC: @artembilan

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions