[
https://issues.apache.org/jira/browse/HDFS-3024?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Todd Lipcon updated HDFS-3024:
------------------------------
Attachment: hdfs-3024.txt
I don't have any good benchmark on this, but the attached code uses a single
StringBuilder, so should be faster.
> Improve performance of stringification in addStoredBlock
> --------------------------------------------------------
>
> Key: HDFS-3024
> URL: https://issues.apache.org/jira/browse/HDFS-3024
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: name-node
> Affects Versions: 0.23.0
> Reporter: Todd Lipcon
> Assignee: Todd Lipcon
> Priority: Minor
> Attachments: hdfs-3024.txt
>
>
> In looking at stack traces of a NN under a heavy block allocation load
> (around a thousand per second) I see that a lot of time is being taken up in
> stringification of log messages for addStoredBlock. This code can be
> optimized to use a single StringBuilder instead of a lot of nested toString()
> calls.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira