Bug: Flaky test: `SPARK-46957: Migrated shuffle files should be able to cleanup from executor` with Java 21
Status: Resolved | Priority: Major | Resolution: Fixed
Created: 19/Aug/24 05:58
Affects Version/s: 4.0.0

* [https://github.com/apache/spark/actions/runs/10446893635/job/28925140545]

{code:java}
[info] - SPARK-46957: Migrated shuffle files should be able to cleanup from executor *** FAILED *** (35 seconds, 200 milliseconds)
15718[info]   0 was not greater than or equal to 4 (BlockManagerDecommissionIntegrationSuite.scala:423)
15719[info]   org.scalatest.exceptions.TestFailedException:
15720[info]   at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
15721[info]   at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
15722[info]   at org.scalatest.Assertions$.newAssertionFailedException(Assertions.scala:1231)
15723[info]   at org.scalatest.Assertions$AssertionsHelper.macroAssert(Assertions.scala:1295)
15724[info]   at org.apache.spark.storage.BlockManagerDecommissionIntegrationSuite.$anonfun$new$10(BlockManagerDecommissionIntegrationSuite.scala:423)
15725[info]   at org.scalatest.enablers.Timed$$anon$1.timeoutAfter(Timed.scala:127)
15726[info]   at org.scalatest.concurrent.TimeLimits$.failAfterImpl(TimeLimits.scala:282)
15727[info]   at org.scalatest.concurrent.TimeLimits.failAfter(TimeLimits.scala:231)
15728[info]   at org.scalatest.concurrent.TimeLimits.failAfter$(TimeLimits.scala:230)
15729[info]   at org.apache.spark.SparkFunSuite.failAfter(SparkFunSuite.scala:69)
15730[info]   at org.apache.spark.SparkFunSuite.$anonfun$test$2(SparkFunSuite.scala:155)
15731[info]   at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
15732[info]   at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
15733[info]   at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
15734[info]   at org.scalatest.Transformer.apply(Transformer.scala:22)
15735[info]   at org.scalatest.Transformer.apply(Transformer.scala:20)
15736[info]   at org.scalatest.funsuite.AnyFunSuiteLike$$anon$1.apply(AnyFunSuiteLike.scala:226)
15737[info]   at org.apache.spark.SparkFunSuite.withFixture(SparkFunSuite.scala:227)
15738[info]   at org.scalatest.funsuite.AnyFunSuiteLike.invokeWithFixture$1(AnyFunSuiteLike.scala:224)
15739[info]   at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTest$1(AnyFunSuiteLike.scala:236)
15740[info]   at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
15741[info]   at org.scalatest.funsuite.AnyFunSuiteLike.runTest(AnyFunSuiteLike.scala:236)
15742[info]   at org.scalatest.funsuite.AnyFunSuiteLike.runTest$(AnyFunSuiteLike.scala:218)
15743[info]   at org.apache.spark.SparkFunSuite.org$scalatest$BeforeAndAfterEach$$super$runTest(SparkFunSuite.scala:69)
15744[info]   at org.scalatest.BeforeAndAfterEach.runTest(BeforeAndAfterEach.scala:234)
15745[info]   at org.scalatest.BeforeAndAfterEach.runTest$(BeforeAndAfterEach.scala:227)
15746[info]   at org.apache.spark.SparkFunSuite.runTest(SparkFunSuite.scala:69)
15747[info]   at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTests$1(AnyFunSuiteLike.scala:269)
15748[info]   at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
15749[info]   at scala.collection.immutable.List.foreach(List.scala:334)
15750[info]   at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
15751[info]   at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
15752[info]   at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
15753[info]   at org.scalatest.funsuite.AnyFunSuiteLike.runTests(AnyFunSuiteLike.scala:269)
15754[info]   at org.scalatest.funsuite.AnyFunSuiteLike.runTests$(AnyFunSuiteLike.scala:268)
15755[info]   at org.scalatest.funsuite.AnyFunSuite.runTests(AnyFunSuite.scala:1564)
15756[info]   at org.scalatest.Suite.run(Suite.scala:1114)
15757[info]   at org.scalatest.Suite.run$(Suite.scala:1096)
15758[info]   at org.scalatest.funsuite.AnyFunSuite.org$scalatest$funsuite$AnyFunSuiteLike$$super$run(AnyFunSuite.scala:1564)
15759[info]   at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$run$1(AnyFunSuiteLike.scala:273)
15760[info]   at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
15761[info]   at org.scalatest.funsuite.AnyFunSuiteLike.run(AnyFunSuiteLike.scala:273)
15762[info]   at org.scalatest.funsuite.AnyFunSuiteLike.run$(AnyFunSuiteLike.scala:272)
15763[info]   at org.apache.spark.SparkFunSuite.org$scalatest$BeforeAndAfterAll$$super$run(SparkFunSuite.scala:69)
15764[info]   at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
15765[info]   at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
15766[info]   at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
15767[info]   at org.apache.spark.SparkFunSuite.run(SparkFunSuite.scala:69)
15768[info]   at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
15769[info]   at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
15770[info]   at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
15771[info]   at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
15772[info]   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
15773[info]   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
15774[info]   at java.base/java.lang.Thread.run(Thread.java:1583) {code}
 * [https://github.com/apache/spark/actions/runs/10429364014/job/28886691394]

{code:java}
[info] - SPARK-46957: Migrated shuffle files should be able to cleanup from executor *** FAILED *** (36 seconds, 151 milliseconds)
15651[info]   0 was not greater than or equal to 12 (BlockManagerDecommissionIntegrationSuite.scala:423)
15652[info]   org.scalatest.exceptions.TestFailedException:
15653[info]   at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
15654[info]   at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
15655[info]   at org.scalatest.Assertions$.newAssertionFailedException(Assertions.scala:1231)
15656[info]   at org.scalatest.Assertions$AssertionsHelper.macroAssert(Assertions.scala:1295)
15657[info]   at org.apache.spark.storage.BlockManagerDecommissionIntegrationSuite.$anonfun$new$10(BlockManagerDecommissionIntegrationSuite.scala:423)
15658[info]   at org.scalatest.enablers.Timed$$anon$1.timeoutAfter(Timed.scala:127)
15659[info]   at org.scalatest.concurrent.TimeLimits$.failAfterImpl(TimeLimits.scala:282)
15660[info]   at org.scalatest.concurrent.TimeLimits.failAfter(TimeLimits.scala:231)
15661[info]   at org.scalatest.concurrent.TimeLimits.failAfter$(TimeLimits.scala:230)
15662[info]   at org.apache.spark.SparkFunSuite.failAfter(SparkFunSuite.scala:69)
15663[info]   at org.apache.spark.SparkFunSuite.$anonfun$test$2(SparkFunSuite.scala:155)
15664[info]   at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
15665[info]   at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
15666[info]   at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
15667[info]   at org.scalatest.Transformer.apply(Transformer.scala:22)
15668[info]   at org.scalatest.Transformer.apply(Transformer.scala:20)
15669[info]   at org.scalatest.funsuite.AnyFunSuiteLike$$anon$1.apply(AnyFunSuiteLike.scala:226)
15670[info]   at org.apache.spark.SparkFunSuite.withFixture(SparkFunSuite.scala:227)
15671[info]   at org.scalatest.funsuite.AnyFunSuiteLike.invokeWithFixture$1(AnyFunSuiteLike.scala:224)
15672[info]   at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTest$1(AnyFunSuiteLike.scala:236)
15673[info]   at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
15674[info]   at org.scalatest.funsuite.AnyFunSuiteLike.runTest(AnyFunSuiteLike.scala:236)
15675[info]   at org.scalatest.funsuite.AnyFunSuiteLike.runTest$(AnyFunSuiteLike.scala:218)
15676[info]   at org.apache.spark.SparkFunSuite.org$scalatest$BeforeAndAfterEach$$super$runTest(SparkFunSuite.scala:69)
15677[info]   at org.scalatest.BeforeAndAfterEach.runTest(BeforeAndAfterEach.scala:234)
15678[info]   at org.scalatest.BeforeAndAfterEach.runTest$(BeforeAndAfterEach.scala:227)
15679[info]   at org.apache.spark.SparkFunSuite.runTest(SparkFunSuite.scala:69)
15680[info]   at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTests$1(AnyFunSuiteLike.scala:269)
15681[info]   at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
15682[info]   at scala.collection.immutable.List.foreach(List.scala:334)
15683[info]   at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
15684[info]   at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
15685[info]   at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
15686[info]   at org.scalatest.funsuite.AnyFunSuiteLike.runTests(AnyFunSuiteLike.scala:269)
15687[info]   at org.scalatest.funsuite.AnyFunSuiteLike.runTests$(AnyFunSuiteLike.scala:268)
15688[info]   at org.scalatest.funsuite.AnyFunSuite.runTests(AnyFunSuite.scala:1564)
15689[info]   at org.scalatest.Suite.run(Suite.scala:1114)
15690[info]   at org.scalatest.Suite.run$(Suite.scala:1096)
15691[info]   at org.scalatest.funsuite.AnyFunSuite.org$scalatest$funsuite$AnyFunSuiteLike$$super$run(AnyFunSuite.scala:1564)
15692[info]   at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$run$1(AnyFunSuiteLike.scala:273)
15693[info]   at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
15694[info]   at org.scalatest.funsuite.AnyFunSuiteLike.run(AnyFunSuiteLike.scala:273)
15695[info]   at org.scalatest.funsuite.AnyFunSuiteLike.run$(AnyFunSuiteLike.scala:272)
15696[info]   at org.apache.spark.SparkFunSuite.org$scalatest$BeforeAndAfterAll$$super$run(SparkFunSuite.scala:69)
15697[info]   at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
15698[info]   at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
15699[info]   at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
15700[info]   at org.apache.spark.SparkFunSuite.run(SparkFunSuite.scala:69)
15701[info]   at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
15702[info]   at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
15703[info]   at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
15704[info]   at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
15705[info]   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
15706[info]   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
15707[info]   at java.base/java.lang.Thread.run(Thread.java:1583) {code}
 * [https://github.com/apache/spark/actions/runs/10414415100/job/28843339816]

{code:java}
[info] - SPARK-46957: Migrated shuffle files should be able to cleanup from executor *** FAILED *** (36 seconds, 117 milliseconds)
15666[info]   0 was not greater than or equal to 8 (BlockManagerDecommissionIntegrationSuite.scala:423)
15667[info]   org.scalatest.exceptions.TestFailedException:
15668[info]   at org.scalatest.Assertions.newAssertionFailedException(Assertions.scala:472)
15669[info]   at org.scalatest.Assertions.newAssertionFailedException$(Assertions.scala:471)
15670[info]   at org.scalatest.Assertions$.newAssertionFailedException(Assertions.scala:1231)
15671[info]   at org.scalatest.Assertions$AssertionsHelper.macroAssert(Assertions.scala:1295)
15672[info]   at org.apache.spark.storage.BlockManagerDecommissionIntegrationSuite.$anonfun$new$10(BlockManagerDecommissionIntegrationSuite.scala:423)
15673[info]   at org.scalatest.enablers.Timed$$anon$1.timeoutAfter(Timed.scala:127)
15674[info]   at org.scalatest.concurrent.TimeLimits$.failAfterImpl(TimeLimits.scala:282)
15675[info]   at org.scalatest.concurrent.TimeLimits.failAfter(TimeLimits.scala:231)
15676[info]   at org.scalatest.concurrent.TimeLimits.failAfter$(TimeLimits.scala:230)
15677[info]   at org.apache.spark.SparkFunSuite.failAfter(SparkFunSuite.scala:69)
15678[info]   at org.apache.spark.SparkFunSuite.$anonfun$test$2(SparkFunSuite.scala:155)
15679[info]   at org.scalatest.OutcomeOf.outcomeOf(OutcomeOf.scala:85)
15680[info]   at org.scalatest.OutcomeOf.outcomeOf$(OutcomeOf.scala:83)
15681[info]   at org.scalatest.OutcomeOf$.outcomeOf(OutcomeOf.scala:104)
15682[info]   at org.scalatest.Transformer.apply(Transformer.scala:22)
15683[info]   at org.scalatest.Transformer.apply(Transformer.scala:20)
15684[info]   at org.scalatest.funsuite.AnyFunSuiteLike$$anon$1.apply(AnyFunSuiteLike.scala:226)
15685[info]   at org.apache.spark.SparkFunSuite.withFixture(SparkFunSuite.scala:227)
15686[info]   at org.scalatest.funsuite.AnyFunSuiteLike.invokeWithFixture$1(AnyFunSuiteLike.scala:224)
15687[info]   at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTest$1(AnyFunSuiteLike.scala:236)
15688[info]   at org.scalatest.SuperEngine.runTestImpl(Engine.scala:306)
15689[info]   at org.scalatest.funsuite.AnyFunSuiteLike.runTest(AnyFunSuiteLike.scala:236)
15690[info]   at org.scalatest.funsuite.AnyFunSuiteLike.runTest$(AnyFunSuiteLike.scala:218)
15691[info]   at org.apache.spark.SparkFunSuite.org$scalatest$BeforeAndAfterEach$$super$runTest(SparkFunSuite.scala:69)
15692[info]   at org.scalatest.BeforeAndAfterEach.runTest(BeforeAndAfterEach.scala:234)
15693[info]   at org.scalatest.BeforeAndAfterEach.runTest$(BeforeAndAfterEach.scala:227)
15694[info]   at org.apache.spark.SparkFunSuite.runTest(SparkFunSuite.scala:69)
15695[info]   at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$runTests$1(AnyFunSuiteLike.scala:269)
15696[info]   at org.scalatest.SuperEngine.$anonfun$runTestsInBranch$1(Engine.scala:413)
15697[info]   at scala.collection.immutable.List.foreach(List.scala:334)
15698[info]   at org.scalatest.SuperEngine.traverseSubNodes$1(Engine.scala:401)
15699[info]   at org.scalatest.SuperEngine.runTestsInBranch(Engine.scala:396)
15700[info]   at org.scalatest.SuperEngine.runTestsImpl(Engine.scala:475)
15701[info]   at org.scalatest.funsuite.AnyFunSuiteLike.runTests(AnyFunSuiteLike.scala:269)
15702[info]   at org.scalatest.funsuite.AnyFunSuiteLike.runTests$(AnyFunSuiteLike.scala:268)
15703[info]   at org.scalatest.funsuite.AnyFunSuite.runTests(AnyFunSuite.scala:1564)
15704[info]   at org.scalatest.Suite.run(Suite.scala:1114)
15705[info]   at org.scalatest.Suite.run$(Suite.scala:1096)
15706[info]   at org.scalatest.funsuite.AnyFunSuite.org$scalatest$funsuite$AnyFunSuiteLike$$super$run(AnyFunSuite.scala:1564)
15707[info]   at org.scalatest.funsuite.AnyFunSuiteLike.$anonfun$run$1(AnyFunSuiteLike.scala:273)
15708[info]   at org.scalatest.SuperEngine.runImpl(Engine.scala:535)
15709[info]   at org.scalatest.funsuite.AnyFunSuiteLike.run(AnyFunSuiteLike.scala:273)
15710[info]   at org.scalatest.funsuite.AnyFunSuiteLike.run$(AnyFunSuiteLike.scala:272)
15711[info]   at org.apache.spark.SparkFunSuite.org$scalatest$BeforeAndAfterAll$$super$run(SparkFunSuite.scala:69)
15712[info]   at org.scalatest.BeforeAndAfterAll.liftedTree1$1(BeforeAndAfterAll.scala:213)
15713[info]   at org.scalatest.BeforeAndAfterAll.run(BeforeAndAfterAll.scala:210)
15714[info]   at org.scalatest.BeforeAndAfterAll.run$(BeforeAndAfterAll.scala:208)
15715[info]   at org.apache.spark.SparkFunSuite.run(SparkFunSuite.scala:69)
15716[info]   at org.scalatest.tools.Framework.org$scalatest$tools$Framework$$runSuite(Framework.scala:321)
15717[info]   at org.scalatest.tools.Framework$ScalaTestTask.execute(Framework.scala:517)
15718[info]   at sbt.ForkMain$Run.lambda$runTest$1(ForkMain.java:414)
15719[info]   at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
15720[info]   at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
15721[info]   at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
15722[info]   at java.base/java.lang.Thread.run(Thread.java:1583) {code}