hachikuji commented on PR #12674:
URL: https://github.com/apache/kafka/pull/12674#issuecomment-1264069768

   @dajac Yeah, this is a tough one. I think one perspective we could take is 
that consumers which have not implemented the protocol should not be supported. 
So perhaps we should only check whether leader epoch is provided and reject the 
request otherwise. After all , even if follower fetching is intended, the user 
might still encounter spurious `OFFSET_OUT_OF_RANGE` errors if the client has 
not implemented the protocol. Alternatively, maybe we should not return that 
error in the first place for clients which are not providing the leader epoch? 
We could return `OFFSET_NOT_AVAILABLE` instead if the leader epoch is -1. Would 
that work?


-- 
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]

Reply via email to