kamalcph commented on code in PR #20218: URL: https://github.com/apache/kafka/pull/20218#discussion_r2225734922
########## storage/src/main/java/org/apache/kafka/server/log/remote/storage/RemoteLogManager.java: ########## @@ -1031,6 +1031,7 @@ private void copyLogSegment(UnifiedLog log, LogSegment segment, RemoteLogSegment customMetadata = remoteStorageManagerPlugin.get().copyLogSegmentData(copySegmentStartedRlsm, segmentData); } catch (RemoteStorageException e) { logger.info("Copy failed, cleaning segment {}", copySegmentStartedRlsm.remoteLogSegmentId()); + recordLagStats(log); Review Comment: This patch handles the error when interacting with the RemoteStorageManager. Should we also handle any error when interacting with RemoteLogMetadataManager? The segmentsLag / bytesLag metric should show the real-time value whenever there is any error in interacting with RSM or RLMM plugin. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org