The ObjectMapper instance is not reused in class CombinedHostsFileReader and CombinedHostsFileWriter. We can reuse them to improve performance.
Here are related issues: HDFS-9724, HDFS-9768.
Degraded performance in WebHDFS listing as it does not reuse ObjectMapper
Reuse objectMapper instance in HDFS to improve the performance
Attach a simple patch.
It seemed the jenkins was hung, upload the patch file again to trigger the jenkins.
Thanks Yiqun Lin for reporting this and creating the patch.
Can we reuse JsonFactory as well?
Thanks Akira Ajisaka for review. Post the new patch for addressing the comments, pending jenkins.
This message was automatically generated.
Committed this to trunk and branch-2. Thanks Yiqun Lin for the contribution.
Thanks Akira Ajisaka for commit!
For future git log greppers, this was typo'd as HADOOP-10568 in the commit message.