Skip to content

Conversation

@chungen0126
Copy link
Contributor

What changes were proposed in this pull request?

Here is a commit from #6613. See #6613 (comment).

This is about release resources properly.

In StreamBlockInputStream, the getAndSet(true) returns the previous value, wasNotYetComplete would be false the first time it's called. This could cause releaseStreamResources() to be skipped the first time it's called.

What is the link to the Apache JIRA

https://issues.apache.org/jira/browse/HDDS-14013

How was this patch tested?

https://github.com/chungen0126/ozone/actions/runs/19693146030

@chungen0126 chungen0126 requested a review from szetszwo November 26, 2025 05:14
@chungen0126 chungen0126 marked this pull request as ready for review November 26, 2025 05:14
@chungen0126 chungen0126 requested a review from sodonnel November 26, 2025 05:15
@peterxcli peterxcli changed the title HDDS-14013. Release resources properly HDDS-14013. Release stream resources in StreamBlockInputStream properly Nov 26, 2025
Copy link
Member

@peterxcli peterxcli left a comment

Choose a reason for hiding this comment

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

LGTM +1

@adoroszlai adoroszlai merged commit c59a08d into apache:master Nov 26, 2025
83 of 84 checks passed
@adoroszlai
Copy link
Contributor

Thanks @chungen0126 for the patch, @peterxcli for the review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants