Skip to content

Commit 8409eac

Browse files
committed
fix
1 parent da8c356 commit 8409eac

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

kyuubi-server/src/main/scala/org/apache/kyuubi/operation/BatchJobSubmission.scala

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,13 @@ class BatchJobSubmission(
162162
}
163163

164164
private def getAppState(
165-
operState: OperationState,
165+
opState: OperationState,
166166
appState: ApplicationState.ApplicationState): ApplicationState.ApplicationState = {
167-
if (state == OperationState.ERROR && !ApplicationState.isTerminated(appState)) {
167+
if (opState == OperationState.ERROR && !ApplicationState.isTerminated(appState)) {
168168
ApplicationState.UNKNOWN
169+
} else {
170+
appState
169171
}
170-
appState
171172
}
172173

173174
override def getOperationLog: Option[OperationLog] = Option(_operationLog)

0 commit comments

Comments
 (0)