You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/03/30 11:55:41 UTC
[jira] [Commented] (BEAM-1713) SparkRuntimeContext instances are
leaking via StateSpecFunctions#mapSourceFunction
[ https://issues.apache.org/jira/browse/BEAM-1713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15948917#comment-15948917 ]
ASF GitHub Bot commented on BEAM-1713:
--------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/beam/pull/2356
> SparkRuntimeContext instances are leaking via StateSpecFunctions#mapSourceFunction
> ----------------------------------------------------------------------------------
>
> Key: BEAM-1713
> URL: https://issues.apache.org/jira/browse/BEAM-1713
> Project: Beam
> Issue Type: Bug
> Components: runner-spark
> Reporter: Stas Levin
> Assignee: Stas Levin
> Priority: Minor
>
> When creating an anonymous class like so:
> {code:java}new Iterable<byte[]>() {...}{code} it is capturing the enclosing scope's {{SparkRuntimeContext}} instance in {{StateSpecFunctions#mapSourceFunction}} via {code:java}return new SerializableFunction3<Source<T>, Option<CheckpointMarkT>,
> State<Tuple2<byte[], Instant>>, Tuple2<Iterable<byte[]>, Metadata>>() { ... runtimeContext usage ... } {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)