Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds proactive closure-serializablilty checking
ClosureCleaner.clean now checks to ensure that its closure argument is serializable by default and throws a SparkException with the underlying NotSerializableException in the detail message otherwise. As a result, transformation invocations with unserializable closures will fail at their call sites rather than when they actually execute. ClosureCleaner.clean now takes a second boolean argument; pass false to disable serializability-checking behavior at call sites where this behavior isn't desired.
- Loading branch information