File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
kyuubi-server/src/main/scala/org/apache/kyuubi/engine Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -99,10 +99,14 @@ object ApplicationState extends Enumeration {
99
99
100
100
def isFailed (
101
101
state : ApplicationState ,
102
- appOperation : Option [ApplicationOperation ]): Boolean = state match {
102
+ appOperation : Option [ApplicationOperation ]): Boolean = {
103
+ isFailed(state, appOperation.exists(_.supportPersistedAppState))
104
+ }
105
+
106
+ def isFailed (state : ApplicationState , supportPersistedAppState : Boolean ): Boolean = state match {
103
107
case FAILED => true
104
108
case KILLED => true
105
- case NOT_FOUND => appOperation.exists(_. supportPersistedAppState)
109
+ case NOT_FOUND => supportPersistedAppState
106
110
case _ => false
107
111
}
108
112
Original file line number Diff line number Diff line change @@ -576,8 +576,7 @@ object KubernetesApplicationOperation extends Logging {
576
576
case None => podAppState
577
577
}
578
578
val applicationError = {
579
- // here the applicationState could not been NOT_FOUND, safe to use None ApplicationOperation
580
- if (ApplicationState .isFailed(applicationState, appOperation = None )) {
579
+ if (ApplicationState .isFailed(applicationState, supportPersistedAppState = true )) {
581
580
val errorMap = containerStatusToBuildAppState.map { cs =>
582
581
Map (
583
582
" Pod" -> podName,
You can’t perform that action at this time.
0 commit comments