Github user rxin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/143#discussion_r14319546
  
    --- Diff: core/src/main/scala/org/apache/spark/SparkContext.scala ---
    @@ -1205,8 +1205,8 @@ class SparkContext(config: SparkConf) extends Logging 
{
        * Clean a closure to make it ready to serialized and send to tasks
        * (removes unreferenced variables in $outer's, updates REPL variables)
        */
    -  private[spark] def clean[F <: AnyRef](f: F): F = {
    -    ClosureCleaner.clean(f)
    +  private[spark] def clean[F <: AnyRef](f: F, checkSerializable: Boolean = 
true): F = {
    --- End diff --
    
    can you document checkSerializable in the doc? (like what exception does it 
throw)


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to