-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
37103: intentresolver: use caller's context deadline in intent resolution r=nvanbenschoten a=ajwerner Having a single timeout value for all batches sent by a request batcher has proven problematic. The first commit changes the behavior to respect the latest deadline for a request in a batch. If any request has no deadline, the batch uses no deadline. The second commit deadline sets a timeout using the previous value applied to all batches to asynchronous intent resolution calls. This change isn't exactly equivalent to the prior behavior for async intent resolution. In particular, the timeout applies to all of the requests rather than to individual requests. Given the timeout, this seems reasonable. If we fail to resolve all of the intents we want to within 30s, something else is probably wrong or we're doing too much work. Co-authored-by: Andrew Werner <[email protected]>
- Loading branch information
Showing
4 changed files
with
119 additions
and
54 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