[
https://issues.apache.org/jira/browse/HDFS-9768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15144163#comment-15144163
]
Akira AJISAKA commented on HDFS-9768:
-------------------------------------
Thanks [~linyiqun] for creating the patch. The fix looks good to me.
Would you reuse ObjectMapper instance in
{{ConfRefreshTokenBasedAccessTokenProvider}} and
{{CredentialBasedAccessTokenProvider}} as well?
> Reuse objectMapper instance in HDFS to improve the performance
> --------------------------------------------------------------
>
> Key: HDFS-9768
> URL: https://issues.apache.org/jira/browse/HDFS-9768
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: performance
> Affects Versions: 2.7.1
> Reporter: Lin Yiqun
> Assignee: Lin Yiqun
> Attachments: HDFS-9768.001.patch, HDFS-9768.002.patch
>
>
> In HDFS-9724, it have reused the ObjectMapper instance to improve the
> performance in {{WebHDFS}}. But in other places, it still using ObjectMapper
> by {{new ObjectMapper()}}. We probably need a comprehensive review across the
> whole codebase to look for this pattern and modify them. In MAPREDUCE-6626,
> YARN-4668, these jiras also work for this.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)