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 returns 200 code even if chunk put object request returns non 200 response code #273

Closed
gritsenkob opened this issue Jun 1, 2022 · 0 comments · Fixed by #274
Assignees
Labels

Comments

@gritsenkob
Copy link
Contributor

Describe the bug
If we upload file bigger than CHUNK_SIZE lib use multipart upload. Lib ignore response code of chunk put object request, so if there is an error code in response lib will send other chunk put object requests anyway.

To Reproduce
limit minio volume size for example to 100 Mb. Try to upload file bigger than 100Mb to minio using put_object_stream function.
put_object_stream will return 200 response code but file won`t be uploaded

Expected behavior
put_object_stream should stop upload and return error response code in case if any chunk put object request returns error code.

Environment

  • Rust version: 1.58.0
  • lib version 0.31.0
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.

2 participants