divijvaidya commented on code in PR #12590: URL: https://github.com/apache/kafka/pull/12590#discussion_r964537055
########## 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); Review Comment: FYI reviewer Server handles this message at `FetchSession.scala` at https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/server/FetchSession.scala#L785 -- 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