jolshan commented on a change in pull request #11331: URL: https://github.com/apache/kafka/pull/11331#discussion_r718910814
########## File path: core/src/main/scala/kafka/server/FetchSession.scala ########## @@ -173,8 +184,8 @@ class CachedPartition(val topic: String, this.eq(that) || (that.canEqual(this) && this.partition.equals(that.partition) && - this.topic.equals(that.topic) && - this.topicId.equals(that.topicId)) + (if (this.topicId != Uuid.ZERO_UUID) this.topicId.equals(that.topicId) + else this.topic.equals(that.topic))) Review comment: It seems like right now `elementKeysAreEqual` is just `equals`. Is the idea in implementing this to prevent someone else from doing so and not using `equals`/the logic from equals? -- 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