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

FetchMetadata creates unneeded Strings on instantiation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.10.0.1, 0.10.1.1, 0.10.2.1
    • 0.10.2.2
    • None
    • None

    Description

      My colleague and I were taking a heap dump to investigate the memory usage of a broker. From the dump, we saw a number of object strings with the message onlyCommitted: <redacted> and partitionStatus: <redacted>]. Upon investigation, these objects were being instantiated when the FetchMetadata object is constructed. The toString method here is malformed and the last two lines are executed as a block instead of being concatenated.

      Attachments

        Activity

          People

            mchinavan Maytee Chinavanichkit
            mchinavan Maytee Chinavanichkit
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: