Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-5763 Make savepoints self-contained and relocatable
  3. FLINK-5778

Split FileStateHandle into fileName and basePath

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None

    Description

      Store the statePath as a basePath and a fileName and allow to overwrite the basePath. We cannot overwrite the base path as long as the state handle is still in flight and not persisted. Otherwise we risk a resource leak.

      We need this in order to be able to relocate savepoints.

      interface RelativeBaseLocationStreamStateHandle {
      
         void clearBaseLocation();
      
         void setBaseLocation(String baseLocation);
      
      }
      

      FileStateHandle should implement this and the SavepointSerializer should forward the calls when a savepoint is stored or loaded, clear before store and set after load.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              uce Ufuk Celebi
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: