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

Shutdown maintenance task thread on error

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.5.0
    • 3.5.0
    • Structured Streaming
    • None

    Description

      Shutdown maintenance task thread on error

       

      Currently if we get an error on maintenance, the future is set to false, but the thread is actually never reaped. If this happens often, we end up accumulating the state store threads that don't have any reference. Eventually this could lead to thread exhaustion.

       

      Eg logs -

      log4j-2023-07-13-18.log:6968:23/07/13 18:34:25 INFO StateStore: State Store maintenance task started
      log4j-2023-07-13-18.log:282671:23/07/13 18:43:28 INFO StateStore: State Store maintenance task started
      log4j-2023-07-13-18.log:322145:23/07/13 18:44:32 INFO StateStore: State Store maintenance task started
      log4j-2023-07-13-18.log:361192:23/07/13 18:45:37 INFO StateStore: State Store maintenance task started
      log4j-2023-07-13-18.log:398145:23/07/13 18:46:37 INFO StateStore: State Store maintenance task started
      log4j-2023-07-13-18.log:436591:23/07/13 18:47:42 INFO StateStore: State Store maintenance task started
      log4j-2023-07-13-18.log:478531:23/07/13 18:48:47 INFO StateStore: State Store maintenance task started 

       

      Attachments

        Activity

          People

            anishshri-db Anish Shrigondekar
            anishshri-db Anish Shrigondekar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: