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

StreamingQueryListener fails to handle QueryTerminatedEvent if more then one listeners exists

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.1, 2.2.0
    • Component/s: Structured Streaming
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: