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

Akira AJISAKA commented on HDFS-9724:
-------------------------------------

bq. Is {{ObjectMapper#writeValueAsString()}} reentrant?
I'm thinking the method is not reentrant. ObjectMapper uses thread local buffer 
for parsers and generators to achieve thread-safety.

http://wiki.fasterxml.com/JacksonFAQ
{quote}Is ObjectMapper thread-safe?
Short answer: yes
Long answer: yes, as long as you always configure instance before use, and do 
not call configure methods during operation (or synchronize such calls 
appropriately). Usually it is better to construct separate mapper instance if 
configurations differ in any case.{quote}
Now the wiki is in trouble. Cache: 
http://webcache.googleusercontent.com/search?q=cache:kybMTIJC6F4J:wiki.fasterxml.com/JacksonFAQ+&cd=4&hl=ja&ct=clnk&gl=jp


> WebHDFS listing is too slow after HDFS-6565
> -------------------------------------------
>
>                 Key: HDFS-9724
>                 URL: https://issues.apache.org/jira/browse/HDFS-9724
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: performance
>    Affects Versions: 2.7.0
>            Reporter: Akira AJISAKA
>            Assignee: Akira AJISAKA
>            Priority: Critical
>         Attachments: HDFS-9724-branch-2.7.01.patch, HDFS-9724.01.patch
>
>
> Eremikhin Alexey reported at user ML that WebHDFS listing is too slow because 
> of HDFS-6565.
> https://mail-archives.apache.org/mod_mbox/hadoop-hdfs-user/201601.mbox/%3C56AB857B.6020105%40corp.badoo.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to