Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-22864

Flaky test: ExecutorAllocationManagerSuite "cancel pending executors when no longer needed"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.3.0
    • Tests
    • None

    Description

      Failed in one PR run:

      sbt.ForkMain$ForkError: org.scalatest.exceptions.TestFailedException: 0 did not equal -1
      	at org.scalatest.Assertions$class.newAssertionFailedException(Assertions.scala:528)
      	at org.scalatest.FunSuite.newAssertionFailedException(FunSuite.scala:1560)
      	at org.scalatest.Assertions$AssertionsHelper.macroAssert(Assertions.scala:501)
      	at org.apache.spark.ExecutorAllocationManagerSuite$$anonfun$9.apply(ExecutorAllocationManagerSuite.scala:271)
      	at org.apache.spark.ExecutorAllocationManagerSuite$$anonfun$9.apply(ExecutorAllocationManagerSuite.scala:247)
      

      Logs have a more interesting exception:

      17/12/21 04:26:10.846 pool-1-thread-1-ScalaTest-running-ExecutorAllocationManagerSuite INFO ExecutorAllocationManager: Requesting 2 new executors because tasks are backlogged (new desired total will be 5)
      17/12/21 04:26:10.858 spark-listener-group-appStatus ERROR AsyncEventQueue: Listener AppStatusListener threw an exception
      java.lang.UnsupportedOperationException: duration() called on unfinished task
      	at org.apache.spark.scheduler.TaskInfo.duration(TaskInfo.scala:118)
      	at org.apache.spark.status.AppStatusListener$$anonfun$onTaskEnd$1.apply(AppStatusListener.scala:468)
      	at org.apache.spark.status.AppStatusListener$$anonfun$onTaskEnd$1.apply(AppStatusListener.scala:435)
      	at scala.Option.foreach(Option.scala:257)
      

      Seems like a race since it passed several attempts locally.

      Attachments

        Activity

          People

            vanzin Marcelo Masiero Vanzin
            vanzin Marcelo Masiero Vanzin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: