chia7712 commented on a change in pull request #9944:
URL: https://github.com/apache/kafka/pull/9944#discussion_r671755992
##########
File path: core/src/main/scala/kafka/server/FetchSession.scala
##########
@@ -758,16 +814,25 @@ class FetchManager(private val time: Time,
case Some(session) => session.synchronized {
if (session.epoch != reqMetadata.epoch) {
debug(s"Session error for ${reqMetadata.sessionId}: expected
epoch " +
- s"${session.epoch}, but got ${reqMetadata.epoch} instead.");
+ s"${session.epoch}, but got ${reqMetadata.epoch} instead.")
new SessionErrorContext(Errors.INVALID_FETCH_SESSION_EPOCH,
reqMetadata)
+ } else if (session.usesTopicIds && reqVersion < 13 ||
!session.usesTopicIds && reqVersion >= 13) {
Review comment:
Thanks for explanation. Will test it after you fix the issue!
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]