beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stas Levin (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (BEAM-1304) NPE if trying to get value of Aggregator that does not exist.
Date Sun, 05 Feb 2017 10:47:41 GMT

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

Stas Levin reassigned BEAM-1304:
--------------------------------

    Assignee: Stas Levin  (was: Amit Sela)

> NPE if trying to get value of Aggregator that does not exist.
> -------------------------------------------------------------
>
>                 Key: BEAM-1304
>                 URL: https://issues.apache.org/jira/browse/BEAM-1304
>             Project: Beam
>          Issue Type: Bug
>          Components: runner-spark
>            Reporter: Amit Sela
>            Assignee: Stas Levin
>
> Querying a specific aggregator value in {{SparkPipelineResult}} could throw NPE if the
get Aggregator name doesn't exist.
> This is the root of the problem: https://github.com/apache/beam/blob/master/runners/spark/src/main/java/org/apache/beam/runners/spark/aggregators/NamedAggregators.java#L74
> {{Map#get()}} will return {{null}}.  
> We could either return {{null}}, though this could simply propagate the problem upstream,
or use {{Optional}}.



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

Mime
View raw message