Skip to content

feat: implement lock lost handling and exceptions - #150

Merged
JacobAtchley merged 1 commit into
mainfrom
forks/tschneider/lost-locks
May 27, 2026
Merged

JacobAtchley merged 1 commit into
mainfrom
forks/tschneider/lost-locks

Conversation

@tnschneider

Copy link
Copy Markdown
Contributor
  • Added LockLostException to handle scenarios where a distributed lock is lost.
  • Updated AcquireLockFailedException to include the key in the error message.
  • Enhanced LitRedisDistributedLockModel to track lock status and lost state.
  • Introduced MaxExtendRetries in RequestLockModel to configure lock renewal failure tolerance.
  • Updated README with examples for handling lost locks and lock renewal failures.
  • Added tests to verify lock lost behavior in LitRedisDistributedLockService.

- Added LockLostException to handle scenarios where a distributed lock is lost.
- Updated AcquireLockFailedException to include the key in the error message.
- Enhanced LitRedisDistributedLockModel to track lock status and lost state.
- Introduced MaxExtendRetries in RequestLockModel to configure lock renewal failure tolerance.
- Updated README with examples for handling lost locks and lock renewal failures.
- Added tests to verify lock lost behavior in LitRedisDistributedLockService.
@JacobAtchley
JacobAtchley merged commit 80a5196 into main May 27, 2026
1 check passed
@tnschneider
tnschneider deleted the forks/tschneider/lost-locks branch May 27, 2026 14:51
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.

2 participants