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

StreamingQueryListener fails to handle QueryTerminatedEvent if more then one listeners exists

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.1.0
    • 2.1.1, 2.2.0
    • Structured Streaming
    • None

    Description

      reproduce:
      *create a spark session
      *add multiple streaming query listeners
      *create a simple query
      *stop the query
      result -> only the first listener handle the QueryTerminatedEvent

      this might happen because the query run id is being removed from activeQueryRunIds once the onQueryTerminated is called (StreamingQueryListenerBus:115)

      Attachments

        Activity

          People

            eyalzit Eyal Zituny
            eyalzit Eyal Zituny
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: