[SPARK-28947][K8S] Status logging not happens at an interval for liveness#25648
[SPARK-28947][K8S] Status logging not happens at an interval for liveness#25648yaooqinn wants to merge 5 commits intoapache:masterfrom yaooqinn:SPARK-28947
Conversation
|
Test build #110003 has finished for PR 25648 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
...tes/core/src/main/scala/org/apache/spark/deploy/k8s/submit/KubernetesClientApplication.scala
Outdated
Show resolved
Hide resolved
|
Test build #111480 has finished for PR 25648 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
...tes/core/src/main/scala/org/apache/spark/deploy/k8s/submit/KubernetesClientApplication.scala
Show resolved
Hide resolved
| } | ||
|
|
||
| test("Waiting for app completion should stall on the watcher") { | ||
| kconf.sparkConf.set(WAIT_FOR_APP_COMPLETION, true) |
There was a problem hiding this comment.
This isn't technically needed, since watchOrStop will be called regardless, right?
There was a problem hiding this comment.
I guess this is needed because it won't stall when false
There was a problem hiding this comment.
Sorry, not following. The only code that "stalls" is LoggingPodStatusWatcherImpl, and this test is using a mock, not that implementation. So what exactly is using this config?
BTW that question applies to all changes you're making in this class.
...ernetes/core/src/main/scala/org/apache/spark/deploy/k8s/submit/LoggingPodStatusWatcher.scala
Outdated
Show resolved
Hide resolved
...managers/kubernetes/core/src/test/scala/org/apache/spark/deploy/k8s/KubernetesTestConf.scala
Outdated
Show resolved
Hide resolved
...ernetes/core/src/main/scala/org/apache/spark/deploy/k8s/submit/LoggingPodStatusWatcher.scala
Outdated
Show resolved
Hide resolved
|
Test build #111511 has finished for PR 25648 at commit
|
|
retest this please |
|
Test build #111515 has finished for PR 25648 at commit
|
|
retest this please |
|
Test build #111548 has finished for PR 25648 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
|
retest this please |
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
|
retest this please |
|
Test build #112003 has finished for PR 25648 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
| logInfo(s"Waiting for application ${conf.appName} with submission ID $sId to finish...") | ||
| val interval = conf.get(REPORT_INTERVAL) | ||
| while (!podCompleted) { | ||
| Thread.sleep(interval) |
There was a problem hiding this comment.
Instead of this you should be using something like wait/notifyAll so you can actually wakeup this thread when needed.
|
Test build #112088 has finished for PR 25648 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status failure |
|
retest this please |
|
Test build #112095 has finished for PR 25648 at commit
|
|
Kubernetes integration test starting |
|
Kubernetes integration test status success |
|
Merging to master. |
What changes were proposed in this pull request?
This pr invoke the start method of
LoggingPodStatusWatcherImplfor status logging at intervals.Why are the changes needed?
This pr invoke the start method of
LoggingPodStatusWatcherImplis declared but never calledDoes this PR introduce any user-facing change?
no
How was this patch tested?
manually test