squah-confluent commented on code in PR #19704: URL: https://github.com/apache/kafka/pull/19704#discussion_r2086497841
########## clients/src/main/java/org/apache/kafka/common/requests/OffsetFetchResponse.java: ########## @@ -239,4 +240,31 @@ public OffsetFetchResponseData data() { public boolean shouldClientThrottle(short version) { return version >= 4; } + + public static OffsetFetchResponseData.OffsetFetchResponseGroup groupError( + OffsetFetchRequestData.OffsetFetchRequestGroup group, + Errors error, + int version + ) { + if (version >= TOP_LEVEL_ERROR_AND_NULL_TOPICS_MIN_VERSION) { Review Comment: The `OffsetFetchResponse.Builder` also does this check and translation, but ineffectively. Should we remove the `Builder` check? -- 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