Zakelly commented on code in PR #26700:
URL: https://github.com/apache/flink/pull/26700#discussion_r2156428263


##########
flink-state-backends/flink-statebackend-forst/src/main/java/org/apache/flink/state/forst/datatransfer/CopyDataTransferStrategy.java:
##########
@@ -159,9 +160,14 @@ private HandleAndLocalPath copyFileToCheckpoint(
             @Nonnull StreamStateHandle sourceHandle,
             CheckpointStreamFactory checkpointStreamFactory,
             CheckpointedStateScope stateScope,
-            CloseableRegistry tmpResourcesRegistry) {
+            CloseableRegistry tmpResourcesRegistry,
+            long maxTransferBytes) {
 
         try {
+            if (sourceHandle.getStateSize() > maxTransferBytes) {

Review Comment:
   Is there any chance the `sourceHandle.getStateSize() <= maxTransferBytes` 
here, but dont match when copying...



-- 
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: [email protected]

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

Reply via email to