-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #186 This PR is best reviewed by commit: - 0ecbbcd is a pure refactor to improve the readability of the `cancel.Wrap` method. - 997d21b Replaces `inOutCache` with `evict.Pool`: A data structure better suited for purpose. `cancel` uses `evict.Pool` to keep track of the set of current requests, ensuring that the request associated with each context is canceled if one of three events happen: - The request returns. - The request times out (only for `Create`, `Update` and `Delete`). - The provider receives a `Cancel` request. - 6d6b8aa improves the integration testing around the `cancel` middleware, especially under heavy concurrency. I'm pleased to report that 6d6b8aa without 997d21b regularly panics, showing that the improved testing does cover #186. - 9a69c1f sets the `-race` flag for tests. This would have also caught #186.
- Loading branch information
Showing
7 changed files
with
478 additions
and
272 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,4 +23,7 @@ examples/**/pulumi-resource-* | |
|
||
/.vscode | ||
|
||
**/testdata/rapid/** | ||
**/testdata/rapid/** | ||
|
||
go.work | ||
go.work.sum |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.