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

LZ4 compression cause the the ExternalSort exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.0.2, 1.1.0
    • Fix Version/s: 1.1.0
    • Component/s: Shuffle, Spark Core
    • Labels:
      None

      Description

      I tested the LZ4 compression,and it come up with such problem.(with wordcount)
      Also I tested the snappy and LZF,and they were OK.
      At last I set the "spark.shuffle.spill" as false to avoid such exeception, but once open this "switch", this error would come.
      It seems that if num of the[ words is few, wordcount will go through,but if it is a complex text ,this problem will show
      Exeception Info as follow:

      java.lang.AssertionError: assertion failed
              at scala.Predef$.assert(Predef.scala:165)
              at org.apache.spark.util.collection.ExternalAppendOnlyMap$DiskMapIterator.<init>(ExternalAppendOnlyMap.scala:416)
              at org.apache.spark.util.collection.ExternalAppendOnlyMap.spill(ExternalAppendOnlyMap.scala:235)
              at org.apache.spark.util.collection.ExternalAppendOnlyMap.insertAll(ExternalAppendOnlyMap.scala:150)
              at org.apache.spark.Aggregator.combineValuesByKey(Aggregator.scala:58)
              at org.apache.spark.shuffle.hash.HashShuffleWriter.write(HashShuffleWriter.scala:55)
              at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:68)
              at org.apache.spark.scheduler.ShuffleMapTask.runTask(ShuffleMapTask.scala:41)
              at org.apache.spark.scheduler.Task.run(Task.scala:54)
              at org.apache.spark.executor.Executor$TaskRunner.run(Executor.scala:177)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
              at java.lang.Thread.run(Thread.java:722)
      

        Attachments

        1. test_lz4_bug.patch
          2 kB
          Mridul Muralidharan

          Activity

            People

            • Assignee:
              andrewor14 Andrew Or
              Reporter:
              carlmartin carlmartin
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: