Skip to content

Commit abbb946

Browse files
committed
fix
1 parent da8c356 commit abbb946

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,20 +154,20 @@ class BatchJobSubmission(
154154
engineId = appInfo.id,
155155
engineName = appInfo.name,
156156
engineUrl = appInfo.url.orNull,
157-
engineState = getAppState(state, appInfo.state).toString,
157+
engineState = getAppState(appInfo.state).toString,
158158
engineError = appInfo.error,
159159
endTime = endTime)
160160
session.sessionManager.updateMetadata(metadataToUpdate)
161161
}
162162
}
163163

164-
private def getAppState(
165-
operState: OperationState,
166-
appState: ApplicationState.ApplicationState): ApplicationState.ApplicationState = {
164+
private def getAppState(appState: ApplicationState.ApplicationState)
165+
: ApplicationState.ApplicationState = {
167166
if (state == OperationState.ERROR && !ApplicationState.isTerminated(appState)) {
168167
ApplicationState.UNKNOWN
168+
} else {
169+
appState
169170
}
170-
appState
171171
}
172172

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

0 commit comments

Comments
 (0)