Closed lcabancla closed 3 years ago
@KasulaVamsi Thanks for the approval. What's the process for merging these to master and publishing the changes? I don't have write access to merge.
@kapilsingh5050 We don't need to reset data there since the only reason why the rvn is being reset with lastUpdateOfLock=0 is to indicate that the lock has expired. If the lock has expired, the client no longer owns the lock, hence there is no need for updated data.
Issue #, if available: https://github.com/awslabs/amazon-dynamodb-lock-client/issues/54
Description of changes:
Make
LockItem
'sdata
field an AtomicReference so that a new methodupdateData()
can update it. IfsendHeartbeat(options)
successfully updates or removes the data in dynamodb, the lockItem'supdateData()
method is called to sync the data with dynamodb.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.