Skip to content

Commit

Permalink
[SPARK-6980] Changed RpcUtils askRpcTimeout and lookupRpcTimeout scop…
Browse files Browse the repository at this point in the history
…e to private[spark] and improved deprecation warning msg
  • Loading branch information
BryanCutler committed Jul 1, 2015
1 parent 4e89c75 commit dbd5f73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/src/main/scala/org/apache/spark/util/RpcUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -47,21 +47,21 @@ object RpcUtils {
}

/** Returns the default Spark timeout to use for RPC ask operations. */
def askRpcTimeout(conf: SparkConf): RpcTimeout = {
private[spark] def askRpcTimeout(conf: SparkConf): RpcTimeout = {
RpcTimeout(conf, Seq("spark.rpc.askTimeout", "spark.network.timeout"), "120s")
}

@deprecated("use askRpcTimeout instead", "1.5.0")
@deprecated("use askRpcTimeout instead, this method was not intended to be public", "1.5.0")
def askTimeout(conf: SparkConf): FiniteDuration = {
askRpcTimeout(conf).duration
}

/** Returns the default Spark timeout to use for RPC remote endpoint lookup. */
def lookupRpcTimeout(conf: SparkConf): RpcTimeout = {
private[spark] def lookupRpcTimeout(conf: SparkConf): RpcTimeout = {
RpcTimeout(conf, Seq("spark.rpc.lookupTimeout", "spark.network.timeout"), "120s")
}

@deprecated("use lookupRpcTimeout instead", "1.5.0")
@deprecated("use lookupRpcTimeout instead, this method was not intended to be public", "1.5.0")
def lookupTimeout(conf: SparkConf): FiniteDuration = {
lookupRpcTimeout(conf).duration
}
Expand Down

0 comments on commit dbd5f73

Please sign in to comment.