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

Optimize the lock in StreamingJobProgressListener to not block UI when generating Streaming jobs

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.2.0
    • DStreams
    • None

    Description

      When DStreamGraph is generating a job, it will hold a lock and block other APIs. Because StreamingJobProgressListener (numInactiveReceivers, streamName(streamId: Int), streamIds) needs to call DStreamGraph's methods to access some information, the UI may hang if generating a job is very slow (e.g., talking to the slow Kafka cluster to fetch metadata).

      It's better to optimize the locks in DStreamGraph and StreamingJobProgressListener to make the UI not block by job generation.

      Attachments

        Activity

          People

            uncleGen Genmao Yu
            zsxwing Shixiong Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: