satishd commented on code in PR #20201: URL: https://github.com/apache/kafka/pull/20201#discussion_r2218192589
########## core/src/main/java/kafka/server/TierStateMachine.java: ########## @@ -230,6 +230,10 @@ private Long buildRemoteLogAuxState(TopicPartition topicPartition, } } + if (!rlm.isPartitionReady(topicPartition)) { + throw new RemoteStorageException(new IllegalStateException("RemoteLogManager is not ready for partition: " + topicPartition)); Review Comment: Better to declare a defined `RuntimeException` for a partition not being ready instead of `IllegalStateException`. -- 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