[ 
https://issues.apache.org/jira/browse/FLINK-5823?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16320601#comment-16320601
 ] 

ASF GitHub Bot commented on FLINK-5823:
---------------------------------------

Github user StefanRRichter commented on a diff in the pull request:

    https://github.com/apache/flink/pull/5248#discussion_r160727075
  
    --- Diff: 
flink-runtime/src/main/java/org/apache/flink/runtime/state/StateBackend.java ---
    @@ -84,13 +84,44 @@
     public interface StateBackend extends java.io.Serializable {
     
        // 
------------------------------------------------------------------------
    -   //  Persistent Bytes Storage
    +   //  Checkpoint storage - the durable persistence of checkpoint data
    +   // 
------------------------------------------------------------------------
    +
    +   /**
    +    * Resolves the given pointer to a checkpoint/savepoint into a state 
handle from which the
    +    * checkpoint metadata can be read. If the state backend cannot 
understand the format of
    +    * the pointer (for example because it was created by a different state 
backend) this method
    +    * should throw an {@code IOException}.
    +    *
    +    * @param pointer The pointer to resolve.
    +    * @return The state handler from which one can read the checkpoint 
metadata.
    +    *
    +    * @throws IOException Thrown, if the state backend does not understand 
the pointer, or if
    +    *                     the pointer could not be resolved due to an I/O 
error.
    +    */
    +   StreamStateHandle resolveCheckpoint(String pointer) throws IOException;
    --- End diff --
    
    Similar to the `String` vs `StoragePointer`, this could also be a class 
that, essentially , is a `StreamStateHandle` but gives a name to the concept, 
e.g. `CheckpointMetaDataHandle`. But it is not as bad as the other case, 
because this is never passed down very deep (yet).


> Store Checkpoint Root Metadata in StateBackend (not in HA custom store)
> -----------------------------------------------------------------------
>
>                 Key: FLINK-5823
>                 URL: https://issues.apache.org/jira/browse/FLINK-5823
>             Project: Flink
>          Issue Type: Sub-task
>          Components: State Backends, Checkpointing
>            Reporter: Stephan Ewen
>            Assignee: Stephan Ewen
>            Priority: Blocker
>             Fix For: 1.5.0
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to