ajithme commented on a change in pull request #27266: [SPARK-22590][SQL] Copy
sparkContext.localproperties to child thread in
BroadcastExchangeExec.executionContext
URL: https://github.com/apache/spark/pull/27266#discussion_r380177233
##########
File path: core/src/main/scala/org/apache/spark/util/ThreadUtils.scala
##########
@@ -304,6 +305,20 @@ private[spark] object ThreadUtils {
}
// scalastyle:on awaitresult
+ @throws(classOf[SparkException])
+ def awaitResult[T](future: JFuture[T], atMost: Duration): T = {
+ try {
+ atMost match {
+ case Duration.Inf => future.get()
+ case _ => future.get(atMost._1, atMost._2)
+ }
+ } catch {
Review comment:
Done
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]