Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvserver: fix Replica.tenantLimiter race
If a Replica is destroyed while or shortly before Send waits for the tenant rate limiter, the rate limiter returns a quotapool.ErrClosed which propagates all the way up to the SQL client. This commit fixes maybeRateLimitBatch to return the Replica destruction status error instead, so that the Send stack retries the request. Release note (bug fix): fixed a race condition in Replica lifecycle which could result in a failed SQL request in cases where it could be successfully retried. Epic: none
- Loading branch information
Showing
2 changed files
with
20 additions
and
4 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