[ 
https://issues.apache.org/jira/browse/HDFS-11712?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15986754#comment-15986754
 ] 

Yiqun Lin edited comment on HDFS-11712 at 4/27/17 2:51 PM:
-----------------------------------------------------------

While working on this, I found that ozone is still using the old jackson 
version API. And {{ObjectMapper}} is under the package 
{{org.codehaus.jackson.map.ObjectMapper}}, however jackson version has been 
upgraded to jackson2 across project. In the latest patch, I have upgraded most 
of places which using the old {{ObjectMapper}}. Only some few places I didn't 
update since I haven't find corresponding APIs in new version.

Attach the patch.


was (Author: linyiqun):
While woking on this, I found that ozone is still using the old jackson version 
API. And {{ObjectMapper}} is under the package 
{{org.codehaus.jackson.map.ObjectMapper}}, however jackson version has been 
upgraded to jackson2. In the latest patch, I have upgraded most of places which 
using the old {{ObjectMapper}}.
Attach the patch.

> Ozone: Reuse ObjectMapper instance to improve the performance
> -------------------------------------------------------------
>
>                 Key: HDFS-11712
>                 URL: https://issues.apache.org/jira/browse/HDFS-11712
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: ozone
>    Affects Versions: HDFS-7240
>            Reporter: Yiqun Lin
>            Assignee: Yiqun Lin
>         Attachments: HDFS-11712-HDFS-7240.001.patch
>
>
> In the ozone, there are many places using {{ObjectMapper}} to do the 
> object-json transformation. From the page of {{ObjectMapper}} 
> (https://github.com/FasterXML/jackson-docs/wiki/Presentation:-Jackson-Performance),
>  {{ObjectMapper}} is a heavy-weight object, it not a good bevahiour  to 
> create this instance everywhere.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to