Skip to content

Commit c5d0b9d

Browse files
committed
changes in ExecutorPodLifecycleManager
1 parent 3399d92 commit c5d0b9d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorPodsLifecycleManager.scala

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,22 @@ private[spark] class ExecutorPodsLifecycleManager(
5959
state match {
6060
case deleted@PodDeleted(_) =>
6161
safeLogDebug(
62-
"Snapshot reported deleted executor with id {execId} and pod name {podName}",
63-
SafeArg.of("execId", execId),
62+
"Snapshot reported deleted executor",
63+
SafeArg.of("executorId", execId),
6464
SafeArg.of("podName", state.pod.getMetadata.getName))
6565
removeExecutorFromSpark(schedulerBackend, deleted, execId)
6666
execIdsRemovedInThisRound += execId
6767
case failed@PodFailed(_) =>
6868
safeLogDebug(
69-
"Snapshot reported failed executor with id {execId} and pod name {podName}",
70-
SafeArg.of("execId", execId),
69+
"Snapshot reported failed executor",
70+
SafeArg.of("executorId", execId),
7171
SafeArg.of("podName", state.pod.getMetadata.getName))
7272
onFinalNonDeletedState(failed, execId, schedulerBackend, execIdsRemovedInThisRound)
7373
case succeeded@PodSucceeded(_) =>
7474
safeLogDebug(
75-
"Snapshot reported succeeded executor with id {execId} and pod name {podName}." +
75+
"Snapshot reported succeeded executor." +
7676
" Note that unusual unless Spark specifically informed the executor to exit.",
77-
SafeArg.of("execId", execId),
77+
SafeArg.of("executorId", execId),
7878
SafeArg.of("podName", state.pod.getMetadata.getName))
7979
onFinalNonDeletedState(succeeded, execId, schedulerBackend, execIdsRemovedInThisRound)
8080
case _ =>
@@ -96,7 +96,7 @@ private[spark] class ExecutorPodsLifecycleManager(
9696
val exitReasonMessage = s"The executor with ID $missingExecutorId was not found in the" +
9797
s" cluster but we didn't get a reason why. Marking the executor as failed. The" +
9898
s" executor may have been deleted but the driver missed the deletion event."
99-
safeLogDebug("The executor with ID {missingExecutorId} was not found in the" +
99+
safeLogDebug("The executor was not found in the" +
100100
" cluster but we didn't get a reason why. Marking the executor as failed. The" +
101101
" executor may have been deleted but the driver missed the deletion event.",
102102
SafeArg.of("missingExecutorId", missingExecutorId))
@@ -111,9 +111,9 @@ private[spark] class ExecutorPodsLifecycleManager(
111111
}
112112

113113
if (execIdsRemovedInThisRound.nonEmpty) {
114-
safeLogDebug("Removed executors with ids {execIdsRemovedInThisRound}" +
114+
safeLogDebug("Removed executors" +
115115
" from Spark that were either found to be deleted or non-existent in the cluster.",
116-
SafeArg.of("execIdsRemovedInThisRound", execIdsRemovedInThisRound.mkString(",")))
116+
SafeArg.of("executorIdsRemovedInThisRound", execIdsRemovedInThisRound.mkString(",")))
117117
}
118118
}
119119

0 commit comments

Comments
 (0)