Github user andrewor14 commented on the pull request:
https://github.com/apache/spark/pull/6268#issuecomment-103674646
@tdas Most of the changes are actually not required, because they
eventually get cleaned later through other methods. We established this rule in
#5787.
So the only places that are actually required are: `filter`,
`combineByKey`, `mapValues` and `flatMapValues`.
Additionally there are a few calls in `updateStateByKey` that need to be
cleaned. In general, the following pattern needs cleaning:
```
def somePublicMethod(func: () => Int): Unit = {
val cleanedF = sc.clean(func)
new SomeRDD(this, (unused: Int) => cleanedF())
}
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]