Skip to content

Commit

Permalink
wrap InterruptedException
Browse files Browse the repository at this point in the history
  • Loading branch information
cxzl25 committed Nov 13, 2023
1 parent 1f2542c commit 21342f5
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,12 +376,12 @@ object SparkSQLEngine extends Logging {
}
} catch {
case i: InterruptedException if !sparkSessionCreated.get =>
error(
val msg =
s"The Engine main thread was interrupted, possibly due to `createSpark` timeout." +
s" The `${ENGINE_INIT_TIMEOUT.key}` is ($initTimeout ms) " +
s" and submitted at $submitTime.",
i)
throw i
s" and submitted at $submitTime."
error(msg, i)
throw new InterruptedException(msg)
case e: KyuubiException => throw e
case t: Throwable =>
error(s"Failed to instantiate SparkSession: ${t.getMessage}", t)
Expand Down

0 comments on commit 21342f5

Please sign in to comment.