Github user rxin commented on the pull request:
https://github.com/apache/spark/pull/1004#issuecomment-45421535
One reason we had to add @transient lazy val is due to the lack of an init
method on each partition for operators. I think there are benefits of adding
that - it makes clear and explicit about object initialization, and then you
can probably avoid this problem.
---
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.
---