Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-28115][CORE][TEST] Fix flaky test: SparkContextSuite.test resource scheduling under local-cluster mode #24917

Closed
wants to merge 1 commit into from

Conversation

jiangxb1987
Copy link
Contributor

What changes were proposed in this pull request?

The test SparkContextSuite.test resource scheduling under local-cluster mode has been flaky, because it expects the size of sc.statusTracker.getExecutorInfos be the same as the number of executors, while the returned list contains both the driver and executors.

How was this patch tested?

Updated existing tests.

@jiangxb1987
Copy link
Contributor Author

cc @mengxr @vanzin

@SparkQA
Copy link

SparkQA commented Jun 20, 2019

Test build #106693 has finished for PR 24917 at commit bbca3c2.

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

@dongjoon-hyun
Copy link
Member

Thank you so much for quick fix, @jiangxb1987 !

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

This test suite also fails with the following. I updated the JIRA issue. Could you fix that, too?

org.scalatest.exceptions.TestFailedException: Array("0", "0", "1", "1", "1", "2", "2", "2", "2") did not equal List("0", "0", "0", "1", "1", "1", "2", "2", "2")
      at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:528)
      at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:527)
      at org.scalatest.FunSuite.newAssertionFailedException(FunSuite.scala:1560)
      at org.scalatest.Assertions$AssertionsHelper.macroAssert(Assertions.scala:501)
      at org.apache.spark.SparkContextSuite.$anonfun$new$93(SparkContextSuite.scala:894)

@dongjoon-hyun
Copy link
Member

cc @gatorsmile

@mengxr
Copy link
Contributor

mengxr commented Jun 20, 2019

LGTM. Merged into master. @dongjoon-hyun the test you linked is fixed in this PR.

@asfgit asfgit closed this in d98a5ce Jun 20, 2019
@dongjoon-hyun
Copy link
Member

Cool. Thanks for the confirmation, @mengxr .

kiku-jw pushed a commit to kiku-jw/spark that referenced this pull request Jun 26, 2019
…urce scheduling under local-cluster mode

## What changes were proposed in this pull request?

The test `SparkContextSuite.test resource scheduling under local-cluster mode` has been flaky, because it expects the size of `sc.statusTracker.getExecutorInfos` be the same as the number of executors, while the returned list contains both the driver and executors.

## How was this patch tested?

Updated existing tests.

Closes apache#24917 from jiangxb1987/getExecutorInfos.

Authored-by: Xingbo Jiang <xingbo.jiang@databricks.com>
Signed-off-by: Xiangrui Meng <meng@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants