zhijiangW commented on a change in pull request #7549: [FLINK-11403][network] 
Introduce ResultPartitionWithConsumableNotifier in task for notifying 
consumable result partition
URL: https://github.com/apache/flink/pull/7549#discussion_r289292979
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/ResultPartition.java
 ##########
 @@ -258,24 +225,13 @@ public void flush(int subpartitionIndex) {
         */
        @Override
        public void finish() throws IOException {
-               boolean success = false;
-
-               try {
-                       checkInProduceState();
+               checkInProduceState();
 
-                       for (ResultSubpartition subpartition : subpartitions) {
-                               subpartition.finish();
-                       }
-
-                       success = true;
+               for (ResultSubpartition subpartition : subpartitions) {
+                       subpartition.finish();
                }
-               finally {
 
 Review comment:
   Yes, I also checked the related processes and it seems no explicit 
`RuntimeException` here.

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


With regards,
Apache Git Services

Reply via email to