Skip to content

Feature: Observe lock token during composite acquisition - #293

Open
gliljas wants to merge 2 commits into
madelson:masterfrom
gliljas:observeLockLostToken
Open

gliljas wants to merge 2 commits into
madelson:masterfrom
gliljas:observeLockLostToken

Conversation

@gliljas

@gliljas gliljas commented Oct 20, 2026

Copy link
Copy Markdown

We have our own composite lock structure built around DistributedLock, and there we encountered an issue (rare) when locks were lost while the next lock in the list was being acquired. That gave us a lock which was in an invalid state at the time it was returned. We could have used LockLostToken everywhere to check for this state, but opted to make it part of the default mechanism.

This is a "side port" of that functionality, but here it's optional. Whether to throw (and what) or to fail, I'm not sure what's best.

@gliljas gliljas changed the title Observe lock token during composite acquisition Feature: Observe lock token during composite acquisition Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant