Skip to content

Commit

Permalink
[LIVY-987] NPE when waiting for thrift session to start timeout.
Browse files Browse the repository at this point in the history
  • Loading branch information
jianzhenwu committed Aug 25, 2023
1 parent 5dccc47 commit 9413296
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class LivyThriftSessionManager(val server: LivyThriftServer, val livyConf: LivyC
if (!future.isCompleted) {
Try(Await.result(future, maxSessionWait)) match {
case Success(session) => session
case Failure(e) => throw e.getCause
case Failure(e) => throw Option(e.getCause).getOrElse(e)
}
} else {
future.value match {
Expand Down

0 comments on commit 9413296

Please sign in to comment.