[
https://issues.apache.org/jira/browse/KAFKA-7347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16593044#comment-16593044
]
ASF GitHub Bot commented on KAFKA-7347:
---------------------------------------
hachikuji opened a new pull request #5576: KAFKA-7347; Return not leader error
OffsetsForLeaderEpoch requests to non-leaders
URL: https://github.com/apache/kafka/pull/5576
Currently we do not return an error in the OffsetsForLeaderEpoch request for
followers and for non-replicas, we return UNKNOWN_TOPIC_OR_PARTITION. We should
return NOT_LEADER_FOR_PARTITION for both cases.
This patch also fixes a minor bug in the handling of ListOffsets request
using the DEBUG replica id. We should return UNKNOWN_TOPIC_OR_PARTITION if the
topic doesn't exist.
### Committer Checklist (excluded from commit message)
- [ ] Verify design and implementation
- [ ] Verify test coverage and CI build status
- [ ] Verify documentation (including upgrade notes)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Wrong error code returned for OffsetsForLeaderEpoch from follower/non-replica
> -----------------------------------------------------------------------------
>
> Key: KAFKA-7347
> URL: https://issues.apache.org/jira/browse/KAFKA-7347
> Project: Kafka
> Issue Type: Bug
> Reporter: Jason Gustafson
> Assignee: Jason Gustafson
> Priority: Major
>
> If a follower or a non-replica receives the OffsetsForLeaderEpoch request, we
> should return NOT_LEADER_FOR_PARTITION. Currently we do not return an error
> for followers and for non-replicas, we return UNKNOWN_TOPIC_OR_PARTITION.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)