hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Todd Lipcon (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-15550) Avoid static initialization of ObjectMappers
Date Fri, 22 Jun 2018 16:20:00 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-15550?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Todd Lipcon updated HADOOP-15550:
    Attachment: hadoop-15550.txt

> Avoid static initialization of ObjectMappers
> --------------------------------------------
>                 Key: HADOOP-15550
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15550
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: performance
>    Affects Versions: 3.2.0
>            Reporter: Todd Lipcon
>            Assignee: Todd Lipcon
>            Priority: Minor
>         Attachments: hadoop-15550.txt, hadoop-15550.txt, hadoop-15550.txt, hadoop-15550.txt
> Various classes statically initialize an ObjectMapper READER instance. This ends up doing
a bunch of class-loading of Jackson libraries that can add up to a fair amount of CPU, even
if the reader ends up not being used. This is particularly the case with WebHdfsFileSystem,
which is class-loaded by a serviceloader even when unused in a particular job. We should lazy-init
these members instead of doing so as a static class member.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org

View raw message