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 ef1f66b commit 4b3417f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ abstract class FlinkOperation(session: Session) extends AbstractOperation(sessio
val ke = KyuubiSQLException(s"Error operating $opType: $errMsg", e)
setOperationException(ke)
setState(OperationState.ERROR)
shutdownTimeoutMonitor()
throw ke
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ class PlanOnlyStatement(
explainOperation(statement)
}
} catch {
shutdownTimeoutMonitor()
onError()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ class ExecuteStatement(
val opHandle = sessionManager.submitBackgroundOperation(asyncOperation)
setBackgroundHandle(opHandle)
} catch {
shutdownTimeoutMonitor()
onError("submitting query in background, query rejected")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ abstract class KyuubiOperation(session: Session) extends AbstractOperation(sessi
}
setOperationException(ke)
setState(OperationState.ERROR)
shutdownTimeoutMonitor()
throw ke
}
}
Expand Down

0 comments on commit 4b3417f

Please sign in to comment.