Skip to content

Commit

Permalink
[KYUUBI apache#6843] FIX 'query-timeout-thread' thread leak
Browse files Browse the repository at this point in the history
  • Loading branch information
liupeiyue committed Dec 9, 2024
1 parent 9e1a015 commit ef1f66b
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class PlanOnlyStatement(
explainOperation(statement)
}
} catch {
shutdownTimeoutMonitor
shutdownTimeoutMonitor()
onError()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class ExecutePython(
val ke =
KyuubiSQLException("Error submitting python in background", rejected)
setOperationException(ke)
shutdownTimeoutMonitor
shutdownTimeoutMonitor()
throw ke
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class ExecuteScala(
val ke =
KyuubiSQLException("Error submitting scala in background", rejected)
setOperationException(ke)
shutdownTimeoutMonitor
shutdownTimeoutMonitor()
throw ke
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class ExecuteStatement(
val ke =
KyuubiSQLException("Error submitting query in background, query rejected", rejected)
setOperationException(ke)
shutdownTimeoutMonitor
shutdownTimeoutMonitor()
throw ke
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class ExecuteStatement(
val ke =
KyuubiSQLException("Error submitting query in background, query rejected", rejected)
setOperationException(ke)
shutdownTimeoutMonitor
shutdownTimeoutMonitor()
throw ke
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class ExecuteStatement(
val opHandle = sessionManager.submitBackgroundOperation(asyncOperation)
setBackgroundHandle(opHandle)
} catch {
shutdownTimeoutMonitor
shutdownTimeoutMonitor()
onError("submitting query in background, query rejected")
}

Expand Down

0 comments on commit ef1f66b

Please sign in to comment.