WencongLiu commented on code in PR #23100:
URL: https://github.com/apache/flink/pull/23100#discussion_r1283977914


##########
flink-runtime/src/main/java/org/apache/flink/runtime/io/network/partition/hybrid/tiered/tier/remote/RemoteStorageScanner.java:
##########
@@ -236,15 +254,24 @@ private boolean checkSegmentExist(
                         partitionId,
                         subpartitionId.getSubpartitionId(),
                         segmentId);
-        boolean isExist;
+        boolean isExist = false;
         try {
             isExist = remoteFileSystem.exists(segmentPath);
-        } catch (IOException e) {
-            throw new RuntimeException("Failed to check segment file. " + 
segmentPath, e);
+            currentRetryTime = 0;
+        } catch (Throwable t) {
+            currentRetryTime++;
+            throwException(t, "Failed to check the status of segment file.");

Review Comment:
   `throwException ` can be modified to `tryThrowException`, WDYT?



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

Reply via email to