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

StorageStatusListener should avoid O(blocks) operations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.0.0
    • 1.1.0
    • Spark Core, Web UI
    • None

    Description

      In the case where jobs are frequently causing dropped blocks the storage status listener can bottleneck. This is slow for a few reasons, one being that we use Scala collection operations, the other being that we operations that are O(number of blocks). I think using a few indices here could make this much faster.

       at java.lang.Integer.valueOf(Integer.java:642)
              at scala.runtime.BoxesRunTime.boxToInteger(BoxesRunTime.java:70)
              at org.apache.spark.storage.StorageUtils$$anonfun$9.apply(StorageUtils.scala:82)
              at scala.collection.TraversableLike$$anonfun$groupBy$1.apply(TraversableLike.scala:328)
              at scala.collection.TraversableLike$$anonfun$groupBy$1.apply(TraversableLike.scala:327)
              at scala.collection.immutable.HashMap$HashMap1.foreach(HashMap.scala:224)
              at scala.collection.immutable.HashMap$HashTrieMap.foreach(HashMap.scala:403)
              at scala.collection.immutable.HashMap$HashTrieMap.foreach(HashMap.scala:403)
              at scala.collection.immutable.HashMap$HashTrieMap.foreach(HashMap.scala:403)
              at scala.collection.TraversableLike$class.groupBy(TraversableLike.scala:327)
              at scala.collection.AbstractTraversable.groupBy(Traversable.scala:105)
              at org.apache.spark.storage.StorageUtils$.rddInfoFromStorageStatus(StorageUtils.scala:82)
              at org.apache.spark.ui.storage.StorageListener.updateRDDInfo(StorageTab.scala:56)
              at org.apache.spark.ui.storage.StorageListener.onTaskEnd(StorageTab.scala:67)
              - locked <0x00000000a27ebe30> (a org.apache.spark.ui.storage.StorageListener)
      

      Attachments

        Issue Links

          Activity

            People

              andrewor14 Andrew Or
              pwendell Patrick Wendell
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: