Skip to content

Commit

Permalink
Commit for work
Browse files Browse the repository at this point in the history
  • Loading branch information
risyomei committed Mar 22, 2023
1 parent d9f9e3c commit 5ee9ddf
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,17 +110,17 @@ class KyuubiSyncThriftClient private (
}
} else {
shutdownAsyncRequestExecutor()
Utils.tryLogNonFatalError {
Option(engineAliveThreadPool).foreach { pool =>
ThreadUtils.shutdown(pool, Duration(engineAliveProbeInterval, TimeUnit.MILLISECONDS))
}
warn(s"Removing Clients for ${_remoteSessionHandle}")
Seq(protocol).union(engineAliveProbeProtocol.toSeq).foreach { tProtocol =>
warn(s"Removing Clients for ${_remoteSessionHandle}")
Seq(protocol).union(engineAliveProbeProtocol.toSeq).foreach { tProtocol =>
Utils.tryLogNonFatalError {
if (tProtocol.getTransport.isOpen) {
tProtocol.getTransport.close()
}
}
clientClosedOnEngineBroken = true
Option(engineAliveThreadPool).foreach { pool =>
ThreadUtils.shutdown(pool, Duration(engineAliveProbeInterval, TimeUnit.MILLISECONDS))
}
}
}
}
Expand Down

0 comments on commit 5ee9ddf

Please sign in to comment.