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

Is it possible to know the reason of heartbeat failure

Open ajak6 opened this issue 7 years ago • 1 comments

Hi,

I am writing an application and want to use this client in my leasing algorithm. I understand that I can pass a handler that lock client will call in case heartbeat fails or lock is expired. However this can also happen due to failure to contact dynamodb. Is it possible to find out what happened. I want my application to have different behavior in case dynamodb outage and different in case the lock is actually expired.

Thanks

ajak6 avatar Jan 25 '18 01:01 ajak6

Transaction support in DynamoDB, recently released may shed some light as to the reasons why conditional updates / puts / deletes fail. I will investigate adding support for this.

amcp avatar Jan 16 '19 21:01 amcp