Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.0.1, 1.1.0
-
None
-
None
Description
Currently if the client sends a produce request or a fetch request to a broker which isn't a replica, we return UNKNOWN_TOPIC_OR_PARTITION. This is a bit surprising to see when the topic actually exists. It would be better to return NOT_LEADER to avoid confusion. Clients typically handle both errors by refreshing metadata and retrying, so changing this should not cause any change in behavior on the client. This case can be hit following a partition reassignment after the leader is moved and the local replica is deleted.
Attachments
Issue Links
- links to