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

Perform maintenance of StateStore instances when they become inactive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.4.0
    • Structured Streaming
    • None

    Description

      Current the maintenance of StateStore is performed by a periodic task in the management thread. If a streaming query become inactive before the next maintenance task fire, its StateStore will be unloaded before cleanup.
      There are 2 cases when a StateStore is unloaded.

      1. StateStoreProvider is not longer active in the system, for example, when a query ends or the spark context terminates.
      2. There is other active StateStoreProvider in the system, for example, when a partition is reassigned.

      In case 1, we should do one last maintenance before unloading the instance.

      Attachments

        Activity

          People

            Chaoqin Chaoqin Li
            Chaoqin Chaoqin Li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: