[
https://issues.apache.org/jira/browse/KAFKA-20026?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kamal Chandraprakash updated KAFKA-20026:
-----------------------------------------
Component/s: Tiered-Storage
> Reduce the list metadata calls to RLMM during segment cleanup
> -------------------------------------------------------------
>
> Key: KAFKA-20026
> URL: https://issues.apache.org/jira/browse/KAFKA-20026
> Project: Kafka
> Issue Type: Task
> Components: Tiered-Storage
> Reporter: Kamal Chandraprakash
> Assignee: Kamal Chandraprakash
> Priority: Major
>
> - RemoteLogManager already calculates the segmentSizeInBytes of all the
> remote-log segments for a partition including the stale segments.
> - Once all the segments are validated, then the computed segmentSize for
> listRemoteLogSegments(tpId) and listRemoteLogSegments(tpId, epoch) will match
> as the deletion proceeds, then the subsequent calls to
> `buildRetentionSizeData` should not validate / invoke the
> listRemoteLogSegments(tpId, epoch) again.
> - It helps to reduce the unnecessary listRemoteLogSegments(tpId, epoch) calls
> to RLMM and saves CPU resources.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)