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

StreamingQueryListener fails to handle QueryTerminatedEvent if more then one listeners exists

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete CommentsDelete
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment