Skip to content

Commit

Permalink
nonfatal
Browse files Browse the repository at this point in the history
  • Loading branch information
turboFei committed Oct 24, 2023
1 parent d4dbbfa commit 8612488
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import java.util.concurrent.{ConcurrentHashMap, Future, ThreadPoolExecutor, Time

import scala.collection.JavaConverters._
import scala.concurrent.duration.Duration
import scala.util.control.NonFatal

import org.apache.hive.service.rpc.thrift.TProtocolVersion

Expand Down Expand Up @@ -312,7 +313,7 @@ abstract class SessionManager(name: String) extends CompositeService(name) {
try {
closeSession(session.handle)
} catch {
case e: Throwable => warn(s"Error closing idle session ${session.handle}", e)
case NonFatal(e) => warn(s"Error closing idle session ${session.handle}", e)
}
} else {
session.closeExpiredOperations()
Expand Down

0 comments on commit 8612488

Please sign in to comment.