ss77892 opened a new pull request, #11159:
URL: https://github.com/apache/ozone/pull/11159

   ## What changes were proposed in this pull request?
   StreamBlockInputStream: refill the pre-read window in bulk instead of once 
per response
   
   This change adds an early return in readBlock(): when the caller's read is 
already covered by what has been requested (required <= 0) and the outstanding 
pre-read window is still at least half full, no new request is sent. The window 
is refilled in bulk only once it drains below half. When required > 0 the 
request is always sent, so a read that needs bytes beyond the requested range 
is never starved.
   
   A unit test (testPreReadWindowIsRefilledInBulk) reads a block one response 
at a time, as KeyInputStream does, and checks that the number of ReadBlock 
requests is bounded by the number of half windows and that every request 
carries at least half a window.
   
   
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-16323
   
   ## How was this patch tested?
   UT added/ CI
   Performance evaluation on 3 node cluster. 
   
[HDDS-16323.pdf](https://github.com/user-attachments/files/31604182/HDDS-16323.pdf)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to