Skip to content

HDDS-14752. Performance degradation in stream GET due to delayed semaphore/permit release at block EOF#9946

Open
ss77892 wants to merge 1 commit intoapache:masterfrom
ss77892:HDDS-14752
Open

HDDS-14752. Performance degradation in stream GET due to delayed semaphore/permit release at block EOF#9946
ss77892 wants to merge 1 commit intoapache:masterfrom
ss77892:HDDS-14752

Conversation

@ss77892
Copy link
Contributor

@ss77892 ss77892 commented Mar 18, 2026

What changes were proposed in this pull request?

HDDS-14752. Performance degradation in stream GET due to delayed semaphore/permit release at block EOF

Please describe your PR in detail:
This PR fixes a stream-read resource lifecycle issue in StreamBlockInputStream by releasing the stream permit immediately at block EOF, instead of relying on delayed cleanup paths. The read position advancement was
centralized and EOF release was made explicit to ensure consistent behavior across reads.

What is the link to the Apache JIRA

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

How was this patch tested?

UT has been added. Read cluster with 3 nodes performance evaluation.

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.

1 participant