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

Optimize Partition.maybeIncrementLeaderHW

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.3.0, 2.2.1
    • None
    • core
    • None

    Description

      Partition.maybeIncrementLeaderHW is in the hot path for ReplicaManager.updateFollowerFetchState. When replicating between brokers with high partition counts, maybeIncrementLeaderHW becomes expensive, with much of the time going to calling Partition.remoteReplicas which performs a toSet conversion. maybeIncrementLeaderHW should avoid generating any intermediate collections when calculating the new HWM.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lucasbradstreet Lucas Bradstreet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: