wangyang0918 commented on a change in pull request #13871:
URL: https://github.com/apache/flink/pull/13871#discussion_r518550184



##########
File path: 
flink-runtime/src/test/java/org/apache/flink/runtime/checkpoint/TestingRetrievableStateStorageHelper.java
##########
@@ -41,22 +64,43 @@
 
                private final T state;
 
-               private TestingRetrievableStateHandle(T state) {
+               private FunctionWithException<T, T, IOException> 
retrieveStateFunction;
+
+               private RunnableWithException discardStateRunnable;
+
+               private Function<T, Long> getStateSizeFunction;
+
+               private TestingRetrievableStateHandle(
+                               T state,
+                               FunctionWithException<T, T, IOException> 
retrieveStateFunction,
+                               RunnableWithException discardStateRunnable,
+                               Function<T, Long> getStateSizeFunction) {
                        this.state = state;
+                       this.retrieveStateFunction = retrieveStateFunction;

Review comment:
       I am not fully understand here. Do you mean combining 
`retrieveStateFunction` and `getStateSizeFunction`? If it is, we have two 
question here.
   * How to get the size of retrieved `state`?
   * `getStateSize` do not throw any exception but `retrieveState` will.




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to