Github user zsxwing commented on the pull request:
https://github.com/apache/spark/pull/6205#issuecomment-115119854
As per the comment here:
https://github.com/scala/scala/blob/2dcc4c42fdcefee08add9dbdcf619ab5da745674/src/compiler/scala/tools/nsc/typechecker/Typers.scala#L3329
One way to prevent from this issue is removing the overload `def
askWithRetry[T: ClassTag](message: Any)` and using the default parameter: `def
askWithRetry[T: ClassTag](message: Any, timeout: RpcTimeout =
defaultAskTimeout)`.
I just tried this locally and the compiler reported the following error:
```
[error]
/Users/zsx/workspace/spark/core/src/main/scala/org/apache/spark/scheduler/DAGScheduler.scala:189:
type mismatch;
[error] found : scala.concurrent.duration.FiniteDuration
[error] required: org.apache.spark.rpc.RpcTimeout
[error] BlockManagerHeartbeat(blockManagerId), 600 seconds)
```
---
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]