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

ConnectionQuotas should cache interbroker listener name

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.7.0
    • 2.8.0
    • core
    • None

    Description

      ConnectionQuotas.protectedListener calls config.interBrokerListenerName. This is a surprisingly expensive call that creates a copy of all properties set on the config. Given that this method is called multiple times per connection created, this is not really ideal.

       

      Profile attached showing allocations in protectedListener()

       

       

      Attachments

        Issue Links

          Activity

            People

              david.mao David Mao
              david.mao David Mao
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: