Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-17644

Add support for state TTL in stateful functions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • statefun-2.1.0
    • Stateful Functions
    • None

    Description

      The DataStream API supportsstate TTL, and it can be made accessible to stateful functions users.

      To facilitate uses cases as described in http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Window-processing-in-Stateful-Functions-td34966.html

       

      The proposed approach would extend the PersistedValue, PersistedTable and PersistedBuffer

      with another constructor that accepts ExpireAfter object

      which has:

      • java time duration
      • refresh on read (boolean)

      (we should never return an expired entry)

      In addition, we need to extend the remote function state to support state expiration. 

       

      Attachments

        Activity

          People

            igal Igal Shilman
            igal Igal Shilman
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: