luozhenyu commented on code in PR #15935: URL: https://github.com/apache/kafka/pull/15935#discussion_r1599493821
########## clients/src/main/java/org/apache/kafka/common/protocol/Readable.java: ########## @@ -53,7 +54,7 @@ default List<RawTaggedField> readUnknownTaggedField(List<RawTaggedField> unknown return unknowns; } - default MemoryRecords readRecords(int length) { + default BaseRecords readRecords(int length) { Review Comment: > Hence, I'm not sure how this change works if you introduce a non-MemoryRecords impl. Hard-coded duplicating of `MemoryRecords` is not elegant. So I add a `duplicate` method to BaseRecords. How do you think? -- 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