Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-9373

Improve shutdown performance via lazy accessing the offset and time indices.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0, 2.4.0, 2.3.1
    • Fix Version/s: 2.6.0
    • Component/s: log
    • Labels:
      None

      Description

      KAFKA-7283 enabled lazy mmap on index files by initializing indices on-demand rather than performing costly disk/memory operations when creating all indices on broker startup. This helped reducing the startup time of brokers. However, segment indices are still created on closing segments, regardless of whether they need to be closed or not.

      Ideally we should:

      • Improve shutdown performance via lazy accessing the offset and time indices.
      • Eliminate redundant disk accesses and memory mapped operations while deleting or renaming files that back segment indices.
      • Prevent illegal accesses to underlying indices of a closed segment, which would lead to memory leaks due to recreation of the underlying memory mapped objects.

        Attachments

          Activity

            People

            • Assignee:
              agencer Adem Efe Gencer
              Reporter:
              agencer Adem Efe Gencer
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: