-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upload: add TeeReader to count bytes during upload (#54)
We occasionally see an EOF error when attempting to upload to S3 storage. An EOF from io.ReadCloser interfaces typically indicates that no more input is available. This commit is adding a TeeReader to count the number of bytes that were read from the local input file when attempting to upload -- this should help us diagnose upload errors where segments seem to be missing from s3 buckets.
- Loading branch information
1 parent
eecd216
commit 567aec3
Showing
1 changed file
with
16 additions
and
3 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