ijuma commented on a change in pull request #9008: URL: https://github.com/apache/kafka/pull/9008#discussion_r456197321
########## File path: generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java ########## @@ -2078,6 +2103,11 @@ private void generateFieldEquals(FieldSpec field) { buffer.printf("if (!Arrays.equals(this.%s, other.%s)) return false;%n", field.camelCaseName(), field.camelCaseName()); } + } else if (field.type().isRecords()) { + // TODO is this valid for record instances? Review comment: The hashCode of `MemoryRecords` takes into account the buffer position, so it's kind of useless. `FileRecords` doesn't even define it. We should consider defining the hashCode and equals of `Records` to be identity based. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org