kamalcph opened a new pull request, #21213:
URL: https://github.com/apache/kafka/pull/21213

   Lazily evaluate the retention size when needed: 
   
   - RemoteLogManager already calculates the retention size of all the 
remote-log segments for a given partition. 
   - If the (full-remote-log-size-bytes + onlyLocalLogSize) exceeds the 
configured retention size, then calculate the absolute remote-retention-bytes 
for individual epoch and apply the segment validation. 
   - If it does not exceed, then skip the calculation. It helps to reduce the 
unnecessary `listRemoteLogSegments(tpId, epoch)` calls to RLMM and saves CPU 
resources. 
   - Added UTs
   


-- 
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]

Reply via email to