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

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_r160644877
  
    --- 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
    --- End diff --
    
    The interface `StateBackend` is getting more crowded and more functionality 
is added and all methods are visible to everybody from `CheckpointCoordinator` 
down to the `XYZKeyedStateBackend`. You have already divided the interface into 
3 segments and I suggest to actually split it into 3 parent interfaces, which 
are all implemented by `StateBackend`. In many places, we can just pass by the 
interface of the sub-functionality that is relevant, e.g. 
`XYZKeyedStateBackend` probably only needs to see to part about creating 
streams and should never call things that create a new backend. This would be  
a big step for separation of concerns, to move away from "global visibility". 
Our IDE should be able to automatically figure out all the places where the 
sub-interfaces are sufficient, but as it might be a bigger diff, we could do a 
separate PR for this.


> 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