Skip to content

[SPARK-28947][K8S] Status logging not happens at an interval for liveness#25648

Closed
yaooqinn wants to merge 5 commits intoapache:masterfrom
yaooqinn:SPARK-28947
Closed

[SPARK-28947][K8S] Status logging not happens at an interval for liveness#25648
yaooqinn wants to merge 5 commits intoapache:masterfrom
yaooqinn:SPARK-28947

Conversation

@yaooqinn
Copy link
Member

@yaooqinn yaooqinn commented Sep 2, 2019

What changes were proposed in this pull request?

This pr invoke the start method of LoggingPodStatusWatcherImpl for status logging at intervals.

Why are the changes needed?

This pr invoke the start method of LoggingPodStatusWatcherImpl is declared but never called

Does this PR introduce any user-facing change?

no

How was this patch tested?

manually test

@SparkQA
Copy link

SparkQA commented Sep 2, 2019

Test build #110003 has finished for PR 25648 at commit 2de2db7.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Sep 2, 2019

@SparkQA
Copy link

SparkQA commented Sep 2, 2019

@felixcheung
Copy link
Member

@mccheah

@SparkQA
Copy link

SparkQA commented Sep 16, 2019

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/15640/

@SparkQA
Copy link

SparkQA commented Sep 16, 2019

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/15640/

@SparkQA
Copy link

SparkQA commented Sep 27, 2019

Test build #111480 has finished for PR 25648 at commit 8050b94.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Sep 27, 2019

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/16509/

@SparkQA
Copy link

SparkQA commented Sep 27, 2019

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/16509/

}

test("Waiting for app completion should stall on the watcher") {
kconf.sparkConf.set(WAIT_FOR_APP_COMPLETION, true)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't technically needed, since watchOrStop will be called regardless, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this is needed because it won't stall when false

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, thanks

@SparkQA
Copy link

SparkQA commented Sep 28, 2019

Test build #111511 has finished for PR 25648 at commit 92306f8.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@yaooqinn
Copy link
Member Author

retest this please

@SparkQA
Copy link

SparkQA commented Sep 28, 2019

Test build #111515 has finished for PR 25648 at commit 92306f8.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@yaooqinn
Copy link
Member Author

retest this please

@SparkQA
Copy link

SparkQA commented Sep 29, 2019

Test build #111548 has finished for PR 25648 at commit 92306f8.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Sep 29, 2019

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/16560/

@SparkQA
Copy link

SparkQA commented Sep 29, 2019

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/16560/

@yaooqinn
Copy link
Member Author

retest this please

@SparkQA
Copy link

SparkQA commented Oct 11, 2019

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/16944/

@SparkQA
Copy link

SparkQA commented Oct 11, 2019

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/16944/

@yaooqinn
Copy link
Member Author

retest this please

@SparkQA
Copy link

SparkQA commented Oct 14, 2019

Test build #112003 has finished for PR 25648 at commit f8eeaae.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Oct 14, 2019

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/17015/

@SparkQA
Copy link

SparkQA commented Oct 14, 2019

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/17015/

logInfo(s"Waiting for application ${conf.appName} with submission ID $sId to finish...")
val interval = conf.get(REPORT_INTERVAL)
while (!podCompleted) {
Thread.sleep(interval)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of this you should be using something like wait/notifyAll so you can actually wakeup this thread when needed.

@SparkQA
Copy link

SparkQA commented Oct 15, 2019

Test build #112088 has finished for PR 25648 at commit 232fc22.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Oct 15, 2019

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/17087/

@SparkQA
Copy link

SparkQA commented Oct 15, 2019

Kubernetes integration test status failure
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/17087/

@yaooqinn
Copy link
Member Author

retest this please

@SparkQA
Copy link

SparkQA commented Oct 15, 2019

Test build #112095 has finished for PR 25648 at commit 232fc22.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Oct 15, 2019

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/17094/

@SparkQA
Copy link

SparkQA commented Oct 15, 2019

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/17094/

@erikerlandson
Copy link
Contributor

@yaooqinn @vanzin LGTM

@vanzin
Copy link
Contributor

vanzin commented Oct 15, 2019

Merging to master.

@vanzin vanzin closed this in 02c5b4f Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants