Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-33928][SPARK-23365][TEST][CORE] Fix flaky o.a.s.ExecutorAlloca…
…tionManagerSuite - " Don't update target num executors when killing idle executors" ### What changes were proposed in this pull request? Use the testing mode for the test to fix the flaky. ### Why are the changes needed? The test is flaky: ```scala [info] - SPARK-23365 Don't update target num executors when killing idle executors *** FAILED *** (126 milliseconds) [info] 1 did not equal 2 (ExecutorAllocationManagerSuite.scala:1615) [info] org.scalatest.exceptions.TestFailedException: [info] at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:530) [info] at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:529) [info] at org.scalatest.FunSuite.newAssertionFailedException(FunSuite.scala:1560) [info] at org.scalatest.Assertions$AssertionsHelper.macroAssert(Assertions.scala:503) [info] at org.apache.spark.ExecutorAllocationManagerSuite.$anonfun$new$84(ExecutorAllocationManagerSuite.scala:1617) ... ``` The root cause should be the same as #29773 since the test run under non-testing mode. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Manually checked. Flaky is gone by running the test hundreds of times after this fix. Closes #30956 from Ngone51/fix-flaky-SPARK-23365. Authored-by: yi.wu <[email protected]> Signed-off-by: Wenchen Fan <[email protected]> (cherry picked from commit 1ef7ddd) Signed-off-by: Wenchen Fan <[email protected]>
- Loading branch information