bowenliang123 commented on code in PR #5398:
URL: https://github.com/apache/kyuubi/pull/5398#discussion_r1362985424
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/operation/ExecuteStatement.scala:
##########
@@ -169,4 +169,45 @@ class ExecuteStatement(
}
override protected def eventEnabled: Boolean = true
+
+ private def startTimeoutCheck(isTimedOut: AtomicBoolean, interval: Long):
Unit = {
+ val checkTimeout = new Runnable {
+ override def run(): Unit = {
+ if (queryTimeout > 0) {
+ val execTime = System.currentTimeMillis() - startTime
Review Comment:
Changed to use existed `addTimeoutMonitor` method, which calculated from
from execution time.
##########
kyuubi-server/src/main/scala/org/apache/kyuubi/operation/ExecuteStatement.scala:
##########
@@ -169,4 +169,45 @@ class ExecuteStatement(
}
override protected def eventEnabled: Boolean = true
+
+ private def startTimeoutCheck(isTimedOut: AtomicBoolean, interval: Long):
Unit = {
+ val checkTimeout = new Runnable {
+ override def run(): Unit = {
+ if (queryTimeout > 0) {
+ val execTime = System.currentTimeMillis() - startTime
Review Comment:
Changed to use the existed `addTimeoutMonitor` method, which is calculated
from from execution time.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]