DistributedLock
DistributedLock copied to clipboard
Azure leases expire
Hi! We've recently switched to this beautiful library from having an inhouse developed implementation with Azure blob leases. Unfortunately we now see a lot of "A lease ID was specified, but the lease for the blob has expired." in production. It's thrown by DeleteIfExistsAsync, i.e during disposal.
I'm experimenting with different cadence settings, but would like to raise the issue anyway.
@gliljas thanks for your interest in the library. I wonder if you're running into https://github.com/madelson/DistributedLock/issues/132 ? Could you post the full error detail (exception.ToString())?
It would also be useful to see some code snippets showing your setup (what options are you using, how are you creating/acquiring/releasing the lock, etc).
Finally, are you subscribing to the HandleLostToken
on the handle? Is it firing?