-
Notifications
You must be signed in to change notification settings - Fork 789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Read the entire reader before writing to bucket #7462
fix: Read the entire reader before writing to bucket #7462
Conversation
For some reason, `io.Copy` was resulting in a "short write" error in the build controller, and the best suspicion I've got at this point is that it's a problem with the bucket writer closing early or something along those lines. So let's instead go back to earlier behavior and read the reader contents and write that directly rather than relying on `io.Copy`. fixes jenkins-x#7461 (hopefully!) Signed-off-by: Andrew Bayer <andrew.bayer@gmail.com>
870eac4
to
2bd412a
Compare
/lgtm |
Just a note @abayer: |
@ankitm123 Yeah, |
/test unit |
/test integration |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: abayer, mgoltzsche The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test boot-vault |
Submitter checklist
Description
For some reason,
io.Copy
was resulting in a "short write" error in the build controller, and the best suspicion I've got at this point is that it's a problem with the bucket writer closing early or something along those lines. So let's instead go back to earlier behavior and read the reader contents and write that directly rather than relying onio.Copy
.Special notes for the reviewer(s)
Which issue this PR fixes
fixes #7461 (hopefully!)