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

Client receives zero number of chunks in merge meta response which doesn't trigger fallback to unmerged blocks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.3.3, 3.4.2, 3.5.0
    • Shuffle
    • None

    Description

      We still see instances of the server returning 0 numChunks in mergedMetaResponse which causes the executor to fail with ArithmeticException.

      java.lang.ArithmeticException: / by zero
      	at org.apache.spark.storage.PushBasedFetchHelper.createChunkBlockInfosFromMetaResponse(PushBasedFetchHelper.scala:128)
      	at org.apache.spark.storage.ShuffleBlockFetcherIterator.next(ShuffleBlockFetcherIterator.scala:1047)
      	at org.apache.spark.storage.ShuffleBlockFetcherIterator.next(ShuffleBlockFetcherIterator.scala:90)
      	at org.apache.spark.util.CompletionIterator.next(CompletionIterator.scala:29)
      	at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)
      	at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:490)
      	at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:458)
      	at org.apache.spark.util.CompletionIterator.hasNext(CompletionIterator.scala:31)
      	at org.apache.spark.InterruptibleIterator.hasNext(InterruptibleIterator.scala:37)
      	at scala.collection.Iterator$$anon$10.hasNext(Iterator.scala:458)
      

      Here the executor doesn't fallback to fetch un-merged blocks and this also doesn't result in a FetchFailure. So, the application fails.

      Attachments

        Activity

          People

            csingh Chandni Singh
            csingh Chandni Singh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: