divijvaidya commented on code in PR #12590: URL: https://github.com/apache/kafka/pull/12590#discussion_r1057614431
########## clients/src/main/java/org/apache/kafka/common/requests/FetchMetadata.java: ########## @@ -114,9 +114,21 @@ public boolean equals(Object o) { } /** - * Return the metadata for the next error response. + * Return the metadata for the next request. The metadata is set to indicate that the client wants to close the + * existing session. */ public FetchMetadata nextCloseExisting() { + return new FetchMetadata(sessionId, FINAL_EPOCH); + } + + /** + * Return the metadata for the next request. Review Comment: sure, this is much clearer. Done in upcoming commit. -- 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