Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Address Patrick's comments #7
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
Uh oh!
There was an error while loading. Please reload this page.
Address Patrick's comments #7
Changes from 1 commit
e1e09e0f551898a59419c2a516172a2c96416788a62409af9af7f2f1c8c59b3b5162f45d1ec64b8afe309032f7c31a70406bd2eaa4ea23dbe4e8d8f6983732ca4bf8c181b130e19044c97e4459f5486e9dc96546796977a087eedce3681f2e7423d42fa26ec79e547fe108b9af9d8a83cc2655aa18ea00d55ec866112270ab747d379d07d667fa71c1678931ffe272d66a03e5ca764239aadcffe09139d7e17fe62c0aa22dab5439d780983646e554abf671457a43798265dc780c296821109fb56db8a28043b7bdc126f25140598b637f2d007a733134ace771d4ed2f8111ea8237df84f7d547b859853a0853a3345825d32cbdfde15e574be6d96c3e63d981fa48d9d6798435b2d863426042a53953d06f986f03d89043632c32260abc2575d46be56cc7fb3738f241617816af3746cfda86d892b83952861b07df1b9f795d7d2ad666053841721e5731af533b3c2a93f1c69564f1c194fe7fdada310a4d86e98db27badf5c418daef4dd5764353dafb5ea645df9128b3045cea9de6511973a7de8eefa78236331faa579ed730c99c65fa77d5744447ebea5cd000b0a37ad4fed25dfc92a86b2fbebaed5d1feda53be2c561358e3c1ea3afb8f5341a599e439a48fa10d61ee8d94826b8f7323b9231b0133e6361ee6e9e77f32fd401cf4c4f1fa61716b8308a02b535198892fd956cc260e18ce5f3c1bb1347ebdb50ddfd8de038e0acc7a07c184282d0150c6e88583890d63b0b855167012ffae258e50856c50f7ce52c44106558144015487d0928accd099b5bae84a3c51c683f2a2f9dd8b912a2ca480307db0c78c92d14c923855dfd5d31e6ffff27e56a0d0493f11eabbe83ac9a46dc5f583bc0548a8d86b0e25b593fac608512c077dce8ec54b9e0c93fa0524f9689b6687bd1f9bde9cc1eb5f2b60adc9328ca3b2b3e986f8168fe86827e81a1af239b1c0bceffa760fee55cc4be6d4a74a74fbbb79820fe3bd3129ee6543f6de06b0548c98c914b8ff585cd65caa5e05f8e1053aa396d42fc09c872fe25689dae3690feb8dFile filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
…oader of Executo... ...r. Constructor of `org.apache.spark.executor.Executor` should not set context class loader of current thread, which is backend Actor's thread. Run the following code in local-mode REPL. ``` scala> case class Foo(i: Int) scala> val ret = sc.parallelize((1 to 100).map(Foo), 10).collect ``` This causes errors as follows: ``` ERROR actor.OneForOneStrategy: [L$line5.$read$$iwC$$iwC$$iwC$$iwC$Foo; java.lang.ArrayStoreException: [L$line5.$read$$iwC$$iwC$$iwC$$iwC$Foo; at scala.runtime.ScalaRunTime$.array_update(ScalaRunTime.scala:88) at org.apache.spark.SparkContext$$anonfun$runJob$3.apply(SparkContext.scala:870) at org.apache.spark.SparkContext$$anonfun$runJob$3.apply(SparkContext.scala:870) at org.apache.spark.scheduler.JobWaiter.taskSucceeded(JobWaiter.scala:56) at org.apache.spark.scheduler.DAGScheduler.handleTaskCompletion(DAGScheduler.scala:859) at org.apache.spark.scheduler.DAGScheduler.processEvent(DAGScheduler.scala:616) at org.apache.spark.scheduler.DAGScheduler$$anonfun$start$1$$anon$2$$anonfun$receive$1.applyOrElse(DAGScheduler.scala:207) at akka.actor.ActorCell.receiveMessage(ActorCell.scala:498) at akka.actor.ActorCell.invoke(ActorCell.scala:456) at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237) at akka.dispatch.Mailbox.run(Mailbox.scala:219) at akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386) at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260) at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339) at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979) at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107) ``` This is because the class loaders to deserialize result `Foo` instances might be different from backend Actor's, and the Actor's class loader should be the same as Driver's. Author: Takuya UESHIN <[email protected]> Closes #15 from ueshin/wip/wrongcontextclassloader and squashes the following commits: d79e8c0 [Takuya UESHIN] Change a parent class loader of ExecutorURLClassLoader. c6c09b6 [Takuya UESHIN] Add a test to collect objects of class defined in repl. 43e0feb [Takuya UESHIN] Prevent ContextClassLoader of Actor from becoming ClassLoader of Executor.Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing