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

    https://github.com/apache/spark/pull/6205#discussion_r30642489
  
    --- Diff: core/src/main/scala/org/apache/spark/rpc/akka/AkkaRpcEnv.scala ---
    @@ -212,7 +211,7 @@ private[spark] class AkkaRpcEnv private[akka] (
     
       override def asyncSetupEndpointRefByURI(uri: String): 
Future[RpcEndpointRef] = {
         import actorSystem.dispatcher
    -    actorSystem.actorSelection(uri).resolveOne(defaultLookupTimeout).
    +    
actorSystem.actorSelection(uri).resolveOne(defaultLookupTimeout.duration).
    --- End diff --
    
    what you are describing sounds reasonable.  We certainly don't want to 
change the return type or await on the result here.
    
    You could potentially fix the doubly-appended msg by throwing a subclass of 
`TimeoutException`, which then you could check for before you amend a msg.  
However, this is really begging the question -- if there is one timeout passed 
in here, and another is passed to an `Await.result` later, how is akka using 
them both?  I suppose it will timeout on whichever one is shorter?  I don't see 
anything very definitive in the docs, perhaps we should confirm on akka-user.  
That would inform how we should do the error handling.
    
    (Honestly I thiink it will also be fine to not stress too much about this 
case, it may not be worth it.)


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