Hangleton commented on code in PR #13240: URL: https://github.com/apache/kafka/pull/13240#discussion_r1125687294
########## clients/src/main/java/org/apache/kafka/common/requests/OffsetCommitRequest.java: ########## @@ -59,7 +63,36 @@ public OffsetCommitRequest build(short version) { throw new UnsupportedVersionException("The broker offset commit protocol version " + version + " does not support usage of config group.instance.id."); } - return new OffsetCommitRequest(data, version); + + // Copy since we can mutate it. + OffsetCommitRequestData requestData = data.duplicate(); Review Comment: Sure! Added the tests. Thanks. -- 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