kamalcph commented on code in PR #21150:
URL: https://github.com/apache/kafka/pull/21150#discussion_r2626047182


##########
storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java:
##########
@@ -1044,6 +1049,9 @@ private void copyLogSegment(UnifiedLog log, LogSegment 
segment, RemoteLogSegment
             
             try {
                 customMetadata = 
remoteStorageManagerPlugin.get().copyLogSegmentData(copySegmentStartedRlsm, 
segmentData);
+            } catch (RetriableRemoteStorageException e) {
+                logger.info("Copy failed with retriable error for segment {}", 
copySegmentStartedRlsm.remoteLogSegmentId());
+                throw e;
             } catch (RemoteStorageException e) {
                 logger.info("Copy failed, cleaning segment {}", 
copySegmentStartedRlsm.remoteLogSegmentId());
                 try {

Review Comment:
   > Maybe we should catch all exceptions thrown from L1058 because we want to 
retry later?
   
   since RRSE extends RSE, the current patch looks clean to me. (Open to 
suggestions)



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