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

    https://github.com/apache/spark/pull/7159#discussion_r34636951
  
    --- Diff: core/src/main/scala/org/apache/spark/rpc/akka/AkkaRpcEnv.scala ---
    @@ -237,6 +237,12 @@ private[spark] class AkkaRpcEnv private[akka] (
       }
     
       override def toString: String = 
s"${getClass.getSimpleName}($actorSystem)"
    +
    +  def deserialize[T](deserializationAction: () => T): T = {
    +    
JavaSerializer.currentSystem.withValue(actorSystem.asInstanceOf[ExtendedActorSystem])
 {
    --- End diff --
    
    spark JavaSerializer is used to deserialize objects. However, it does not 
have an actor system in the current context. I need to use Akka 
`JavaSerializer.currentSystem` to put the current actor system into a 
thread-local variable.


---
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.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to