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

A daemon thread, "BatchedWriteAheadLog Writer", left behind after terminating StreamingContext.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.3, 2.1.1
    • Fix Version/s: 2.3.0
    • Component/s: DStreams
    • Labels:
      None

      Description

      With batched write ahead log on by default in driver (SPARK-11731), if there is no receiver based InputDStream, the "BatchedWriteAheadLog Writer" thread created by BatchedWriteAheadLog never get shutdown.

      The root cause is due to https://github.com/apache/spark/blob/master/streaming/src/main/scala/org/apache/spark/streaming/scheduler/ReceiverTracker.scala#L168

      that it never call ReceivedBlockTracker.stop() (which in turn call BatchedWriteAheadLog.close()) if there is no receiver based input.

        Attachments

          Activity

            People

            • Assignee:
              hyukjin.kwon Hyukjin Kwon
              Reporter:
              chtyim Terence Yim
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: