You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "zhengyd2014 (via GitHub)" <gi...@apache.org> on 2023/09/25 21:37:52 UTC
[GitHub] [kafka] zhengyd2014 commented on a diff in pull request #14444: KIP-951: Server side and protocol changes for KIP-951
zhengyd2014 commented on code in PR #14444:
URL: https://github.com/apache/kafka/pull/14444#discussion_r1336412576
##########
clients/src/main/java/org/apache/kafka/common/requests/FetchResponse.java:
##########
@@ -276,11 +289,16 @@ private static FetchResponseData toMessage(Errors error,
.setPartitions(partitionResponses));
}
}
-
- return new FetchResponseData()
- .setThrottleTimeMs(throttleTimeMs)
- .setErrorCode(error.code())
- .setSessionId(sessionId)
- .setResponses(topicResponseList);
+ data.setThrottleTimeMs(throttleTimeMs)
+ .setErrorCode(error.code())
+ .setSessionId(sessionId)
+ .setResponses(topicResponseList);
+ nodeEndpoints.forEach(endpoint -> data.nodeEndpoints().add(
Review Comment:
I don't think we need to populate nodeEndpoints field for all the Fetch/Produce response, which has certain overhead. to my understanding, the info needed only for error condition.
--
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-unsubscribe@kafka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org