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

Mark attribute multipart parts for release #6511

Merged
merged 1 commit into from Nov 12, 2021
Merged

Conversation

yawkat
Copy link
Member

@yawkat yawkat commented Nov 12, 2021

Attribute parts were not released properly when combined with streaming another part. This patch adds the attribute part to the request so that the request handles cleanup. We can't release the data immediately, because the route method may still expect it as a ByteBuffer parameter.

There is no unit test for this, because this only fixes a bytebuf leak, which can't be tested in our current setup.

Fixes #4837

Attribute parts were not released properly when combined with streaming another part. This patch adds the attribute part to the request so that the request handles cleanup. We can't release the data immediately, because the route method may still expect it as a ByteBuffer parameter.

There is no unit test for this, because this only fixes a bytebuf leak, which can't be tested in our current setup.

Fixes #4837
@yawkat yawkat added the type: bug Something isn't working label Nov 12, 2021
@yawkat yawkat added this to the 3.1.4 milestone Nov 12, 2021
@jameskleeh jameskleeh merged commit 0c1a9da into 3.1.x Nov 12, 2021
@jameskleeh jameskleeh deleted the attribute-release-0 branch November 12, 2021 16:32
dstepanov pushed a commit to konrad-kaminski/micronaut-core that referenced this pull request Nov 22, 2021
Attribute parts were not released properly when combined with streaming another part. This patch adds the attribute part to the request so that the request handles cleanup. We can't release the data immediately, because the route method may still expect it as a ByteBuffer parameter.

There is no unit test for this, because this only fixes a bytebuf leak, which can't be tested in our current setup.

Fixes micronaut-projects#4837
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ByteBuf.release() was not called while doing a multipart upload
3 participants