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

Fix PutPayloadMut::push not updating content_length (#5743) #5744

Merged
merged 1 commit into from
May 10, 2024

Conversation

tustvold
Copy link
Contributor

@tustvold tustvold commented May 10, 2024

Which issue does this PR close?

Closes #5743

Rationale for this change

PutPayloadMut was not correctly updating its content size, so WriteMultipart if solely used with put was incorrectly thinking that there was nothing to write and never uploading anything. Our existing tests always used a combination of push and extend_from_slice and so didn't run into this.

As this is a pretty major bug introduced in 0.10.0, once merged I intend to prepare a patch release, and once cut will yank the broken release

What changes are included in this PR?

Are there any user-facing changes?

@github-actions github-actions bot added the object-store Object Store Interface label May 10, 2024
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the fix @tustvold and the report @orf

@tustvold tustvold merged commit 02be02b into apache:master May 10, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
object-store Object Store Interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using WriteMultipart::put results in 0 bytes being written
2 participants