[ https://issues.apache.org/jira/browse/BEAM-1629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15897853#comment-15897853 ]
ASF GitHub Bot commented on BEAM-1629: -------------------------------------- GitHub user aviemzur opened a pull request: https://github.com/apache/beam/pull/2171 [BEAM-1629] Make metrics/aggregators accumulators available on driver Be sure to do all of the following to help us incorporate your contribution quickly and easily: - [ ] Make sure the PR title is formatted like: `[BEAM-<Jira issue #>] Description of pull request` - [ ] Make sure tests pass via `mvn clean verify`. (Even better, enable Travis-CI on your fork and ensure the whole test matrix passes). - [ ] Replace `<Jira issue #>` in the title with the actual Jira issue number, if there is one. - [ ] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.txt). --- You can merge this pull request into a Git repository by running: $ git pull https://github.com/aviemzur/beam fix-accumulator-singleton-instantiation-race Alternatively you can review and apply these changes as the patch at: https://github.com/apache/beam/pull/2171.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2171 ---- commit 5c4cb5ee153fd7ca069d90d3ac558bceaf82678c Author: Aviem Zur <aviem...@gmail.com> Date: 2017-03-06T18:48:48Z [BEAM-1629] Make metrics/aggregators accumulators available on driver ---- > Make metrics/aggregators accumulators available on driver > --------------------------------------------------------- > > Key: BEAM-1629 > URL: https://issues.apache.org/jira/browse/BEAM-1629 > Project: Beam > Issue Type: Bug > Components: runner-spark > Reporter: Aviem Zur > Assignee: Aviem Zur > > Today aggregators and metrics accumulators are instantiated after pipeline is > traversed, and so, if code that runs on driver accesses these singletons but > is not part of a closure a {{NullPointerException}} is thrown. -- This message was sent by Atlassian JIRA (v6.3.15#6346)