Skip to content
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

put_object_stream sync implementation always fails for small files #342

Closed
jccallu-genomicsplc opened this issue May 4, 2023 · 2 comments · Fixed by #357
Closed

put_object_stream sync implementation always fails for small files #342

jccallu-genomicsplc opened this issue May 4, 2023 · 2 comments · Fixed by #357
Assignees
Labels

Comments

@jccallu-genomicsplc
Copy link

Describe the bug

This bug is still present in the current master branch in s3/src/bucket.rs:1193 and in v0.33 for the sync implementation.

At this line the function should always return a Result and not continue in case of success. Currently this means we will try to read more from the reader, and return an error because it is exhausted. This makes the function always fail for small objects.

To Reproduce

This is a systematic error with put_object_stream sync implementation. A unit test should exist to cover this

Expected behavior

put_object_stream should always return the actual result of its upload

Environment

  • Rust version: 1.69
  • lib version 0.33
@dgrr
Copy link

dgrr commented Aug 25, 2023

When

@ribeaud
Copy link

ribeaud commented Oct 14, 2023

Is this project dead or what? Why does this very useful PR not get merged?

durch pushed a commit that referenced this issue Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants