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

Use WeakReference over SoftReference in LevelDB to avoid retaining iterator refs

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.2.0, 3.1.3
    • Component/s: Spark Core
    • Labels:
      None
    • Target Version/s:

      Description

      See discussion at https://github.com/apache/spark/pull/28769#issuecomment-906722390

      The SoftReference used to track iterators in LevelDB can prevent them from being GCed early enough, thus finalized and closed. A WeakReference would be more readily collected, and solves an apparent actual issue running a 3.1.x SHS.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                srowen Sean R. Owen
                Reporter:
                srowen Sean R. Owen
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: