Myasuka commented on a change in pull request #18324: URL: https://github.com/apache/flink/pull/18324#discussion_r788418063
########## File path: flink-runtime/src/main/java/org/apache/flink/runtime/state/StateObject.java ########## @@ -63,4 +63,14 @@ * @return Size of the state in bytes. */ long getStateSize(); + + /** + * Returns the incremental state size in bytes. If the size is unknown, this method would return + * same result as {@link #getStateSize()}. + * + * @return Size of incremental state in bytes. + */ + default long getIncrementalStateSize() { + return getStateSize(); + } Review comment: I have tried to refactor to add a new non-default method in `CompositeStateHandle`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org