-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better Semaphore Lease Contention Handling (#10666)
Add the same retry logic from `AcquireSemaphore` to `CancelSemaphoreLease` to handle contetion. Without the retry it is possible for a cancellation to fail and the lease in question to remain held for its entire expiry. If the number of cancellations that fail is >= `max_connections` then this causes a user to effectively be locked out until the leases are expired. Fixes #10363
- Loading branch information
1 parent
642fe0e
commit 4061351
Showing
2 changed files
with
136 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters