-
Notifications
You must be signed in to change notification settings - Fork 867
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
Using WriteMultipart::put results in 0 bytes being written #5743
Labels
Comments
tustvold
added a commit
to tustvold/arrow-rs
that referenced
this issue
May 10, 2024
tustvold
added a commit
to tustvold/arrow-rs
that referenced
this issue
May 10, 2024
tustvold
added a commit
that referenced
this issue
May 10, 2024
|
Thanks for the super quick fix @tustvold <3 |
tustvold
added a commit
to tustvold/arrow-rs
that referenced
this issue
May 10, 2024
tustvold
added a commit
that referenced
this issue
May 11, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
WriteMultipart::put seems to be trivially broken. The method depends on the size of the buffer (via the
content_length()
method):arrow-rs/object_store/src/upload.rs
Lines 183 to 194 in b25c441
However this is not updated by
push()
:arrow-rs/object_store/src/payload.rs
Lines 250 to 256 in b25c441
Repeated calls to
.put()
will not modifybuffer.len
(it will always be 0), so no part will ever be uploaded to S3.Reproduction:
foobar
will have 0 bytes, even if you write more than 25mb of data.The text was updated successfully, but these errors were encountered: