dongjoon-hyun commented on a change in pull request #28423:
URL: https://github.com/apache/spark/pull/28423#discussion_r442539421
##########
File path:
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/deploy/k8s/submit/LoggingPodStatusWatcher.scala
##########
@@ -42,17 +44,24 @@ private[k8s] class LoggingPodStatusWatcherImpl(conf:
KubernetesDriverConf)
private var podCompleted = false
+ private var resourceToOldReceived = false
+
private var pod = Option.empty[Pod]
private def phase: String =
pod.map(_.getStatus.getPhase).getOrElse("unknown")
+ override def reset(): Unit = {
+ resourceToOldReceived = false
+ }
+
override def eventReceived(action: Action, pod: Pod): Unit = {
this.pod = Option(pod)
action match {
case Action.DELETED | Action.ERROR =>
closeWatch()
- case _ =>
+ case a =>
+ logTrace(s"Received action: $a")
Review comment:
Shall we revert this change (line 63 ~ 64)?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]