You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Maytee Chinavanichkit (JIRA)" <ji...@apache.org> on 2017/12/15 09:31:00 UTC
[jira] [Created] (KAFKA-6371) FetchMetadata creates unneeded
Strings on instantiation
Maytee Chinavanichkit created KAFKA-6371:
--------------------------------------------
Summary: FetchMetadata creates unneeded Strings on instantiation
Key: KAFKA-6371
URL: https://issues.apache.org/jira/browse/KAFKA-6371
Project: Kafka
Issue Type: Bug
Affects Versions: 0.10.2.1, 0.10.1.1, 0.10.0.1
Reporter: Maytee Chinavanichkit
Assignee: Maytee Chinavanichkit
Priority: Minor
Fix For: 0.10.0.2, 0.10.1.2, 0.10.2.2
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.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)