OmniaGM commented on code in PR #19964: URL: https://github.com/apache/kafka/pull/19964#discussion_r2152276755
########## clients/src/main/java/org/apache/kafka/common/TopicIdPartition.java: ########## @@ -78,6 +78,18 @@ public TopicPartition topicPartition() { return topicPartition; } + /** + * @return true if topic has same topicId and partition index as topic names some time might be empty. + */ + public boolean same(TopicIdPartition tpId) { + if (tpId.topic().isEmpty()) { + return topicId.equals(tpId.topicId) && + topicPartition.partition() == tpId.partition(); + } else { + return this.equals(tpId); Review Comment: Updated this now to be sepcific about topic name exist but id doesnt or other way around -- 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