-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] Rewind seekable streams before retrying (#821)
## What changes are proposed in this pull request? This PR adapts the retry mechanism of `BaseClient` to only retry if (i) the request is not a stream or (ii) the stream is seekable and can be reset to its initial position. This fixes a bug that led retries to ignore part of the request that were already processed in previous attempts. ## How is this tested? Added unit tests to verify that (i) non-seekable streams are not retried, and (ii) seekable streams are properly reset before retrying.
- Loading branch information
1 parent
ee6e70a
commit e8b7916
Showing
2 changed files
with
178 additions
and
12 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