forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
intentresolver: Add max timeout to RequestBatcher and IntentResolver
There is a limit of 1000 in-flight intent resolution request batches that can be processed at a time before backpressure. We saw a case where an unavailable range resulted in many intent resolution request batches to be stuck, clogging up the worker pool and starving the other ranges trying to resolve intents. This resulted in more queries timing out. To address this, this patch adds a max timeout to RequestBatcher and IntentResolver to ensure that no worker trying to resolve a batch of intents gets stuck indefinitely e.g. due to an unavailable range. Release note (ops change): Added max timeout to intent resolution, preventing intent resolution from becoming stuck indefinitely and blocking other ranges attempting to resolve intents.
- Loading branch information
Showing
8 changed files
with
449 additions
and
77 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
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
Oops, something went wrong.