[
https://issues.apache.org/jira/browse/KAFKA-12955?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jun Rao resolved KAFKA-12955.
-----------------------------
Fix Version/s: 3.0.0
Assignee: Kowshik Prakasam
Resolution: Fixed
Merged the PR to trunk.
> Fix LogLoader to pass materialized view of segments for deletion
> ----------------------------------------------------------------
>
> Key: KAFKA-12955
> URL: https://issues.apache.org/jira/browse/KAFKA-12955
> Project: Kafka
> Issue Type: Sub-task
> Reporter: Kowshik Prakasam
> Assignee: Kowshik Prakasam
> Priority: Critical
> Fix For: 3.0.0
>
>
> Within {{LogLoader.removeAndDeleteSegmentsAsync()}}, we should force
> materialization of the {{segmentsToDelete}} iterable, to make sure the
> results of the iteration remain valid and deterministic. We should also pass
> only the materialized view to the logic that deletes the segments. Otherwise,
> we could end up deleting the wrong segments asynchronously.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)