-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADAM-891] Mark SparkContext as @transient. #894
Conversation
Closes bigdatagenomics#891. In org.bdgenomics.adam.rdd.ADAMContext, the val sparkContext: SparkContext is not marked as @transient, which causes serialization issues. SparkContexts are not serializable and should only be called from the driver.
Test FAILed. Build result: FAILUREGitHub pull request #894 of commit a4be852 automatically merged.Notifying endpoint 'HTTP:https://webhooks.gitter.im/e/ac8bb6e9f53357bc8aa8'[EnvInject] - Loading node environment variables.Building remotely on amp-jenkins-worker-05 (centos spark-test) in workspace /home/jenkins/workspace/ADAM-prb > git rev-parse --is-inside-work-tree # timeout=10Fetching changes from the remote Git repository > git config remote.origin.url https://github.com/bigdatagenomics/adam.git # timeout=10Fetching upstream changes from https://github.com/bigdatagenomics/adam.git > git --version # timeout=10 > git fetch --tags --progress https://github.com/bigdatagenomics/adam.git +refs/pull/:refs/remotes/origin/pr/ > git rev-parse origin/pr/894/merge^{commit} # timeout=10 > git branch -a --contains 55dfb83 # timeout=10 > git rev-parse remotes/origin/pr/894/merge^{commit} # timeout=10Checking out Revision 55dfb83 (origin/pr/894/merge) > git config core.sparsecheckout # timeout=10 > git checkout -f 55dfb8363337194e825c5ddfbebecadffd197becFirst time build. Skipping changelog.Triggering ADAM-prb ? 2.6.0,2.11,1.4.1,centosTriggering ADAM-prb ? 2.6.0,2.10,1.4.1,centosTouchstone configurations resulted in FAILURE, so aborting...Notifying endpoint 'HTTP:https://webhooks.gitter.im/e/ac8bb6e9f53357bc8aa8'Test FAILed. |
Should ADAMContext be serializable? |
Jenkins, retest this please. |
Test PASSed. |
LGTM, ok to merge via Merge pull request button? |
@ryan-williams I think it needs to be serializable as we have closures in the class that need to be serialized (e.g., for BAM->ADAM conversion). It might make sense to pull the things that need to be serializable out into another object, but I digress. |
Makes sense, gtk, thx |
[ADAM-891] Mark SparkContext as @transient.
Thanks! |
Closes #891. In org.bdgenomics.adam.rdd.ADAMContext, the val sparkContext:
SparkContext is not marked as @transient, which causes serialization issues.
SparkContexts are not serializable and should only be called from the driver.