Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-12551 Refactor Kafka Log layer
  3. KAFKA-12955

Fix LogLoader to pass materialized view of segments for deletion

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 3.0.0
    • None
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              kprakasam Kowshik Prakasam
              kprakasam Kowshik Prakasam
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: