kamalcph commented on code in PR #17737: URL: https://github.com/apache/kafka/pull/17737#discussion_r1837835553
########## core/src/main/java/kafka/log/remote/RemoteLogManager.java: ########## @@ -790,8 +790,12 @@ protected LogContext getLogContext() { } public void run() { - if (isCancelled()) + boolean isReady = remoteLogMetadataManager.isReady(topicIdPartition); + if (isCancelled() || !isReady) { + logger.debug("Skipping the current run for partition {} as it is either cancelled: {} or " + + "remote log metadata is not ready, isReady: {}", topicIdPartition, isCancelled(), isReady); return; + } Review Comment: Updated. -- 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