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

FetchMetadata creates unneeded Strings on instantiation

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.10.0.1, 0.10.1.1, 0.10.2.1
    • Fix Version/s: 0.10.2.2
    • Component/s: None
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: