[
https://issues.apache.org/jira/browse/BEAM-1713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stas Levin updated BEAM-1713:
-----------------------------
Description:
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}
was:
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}}.
> 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)