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 16, 2024
1 parent 4b3417f commit 9107a30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ class PlanOnlyStatement(
statement)
resultSet =
ResultSetUtil.fromResultFetcher(resultFetcher, resultMaxRows, resultFetchTimeout);
case _ =>
explainOperation(statement)
case _ => explainOperation(statement)
}
} catch {
onError()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,7 @@ class ExecuteStatement(
try {
val opHandle = sessionManager.submitBackgroundOperation(asyncOperation)
setBackgroundHandle(opHandle)
} catch {
onError("submitting query in background, query rejected")
}
} catch onError("submitting query in background, query rejected")

if (!shouldRunAsync) getBackgroundHandle.get()
}
Expand Down

0 comments on commit 9107a30

Please sign in to comment.