hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joep Rottinghuis (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-3741) consider nulling member maps/sets of TimelineEntity
Date Mon, 11 Jul 2016 17:21:15 GMT

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

Joep Rottinghuis updated YARN-3741:
    Labels: YARN-5355  (was: )

> consider nulling member maps/sets of TimelineEntity
> ---------------------------------------------------
>                 Key: YARN-3741
>                 URL: https://issues.apache.org/jira/browse/YARN-3741
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>          Components: timelineserver
>    Affects Versions: YARN-2928
>            Reporter: Sangjin Lee
>            Assignee: Sangjin Lee
>              Labels: YARN-5355
> Currently there are multiple collection members of TimelineEntity that are always instantiated,
regardless of whether they are used or not: info, configs, metrics, events, isRelatedToEntities,
and relatesToEntities.
> Since TimelineEntities will be created very often and in lots of cases many of these
members will be empty, creating these empty collections is wasteful in terms of garbage collector
> It would be good to start out with null members, and instantiate these collections only
if they are actually used. Of course, we need to make that contract very clear and refactor
all client code to handle that scenario.

This message was sent by Atlassian JIRA

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

View raw message