You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Jason Gustafson (Jira)" <ji...@apache.org> on 2022/05/25 22:40:00 UTC

[jira] [Created] (KAFKA-13940) DescribeQuorum returns INVALID_REQUEST if not handled by leader

Jason Gustafson created KAFKA-13940:
---------------------------------------

             Summary: DescribeQuorum returns INVALID_REQUEST if not handled by leader
                 Key: KAFKA-13940
                 URL: https://issues.apache.org/jira/browse/KAFKA-13940
             Project: Kafka
          Issue Type: Bug
            Reporter: Jason Gustafson


In `KafkaRaftClient.handleDescribeQuorum`, we currently return INVALID_REQUEST if the node is not the current raft leader. This is surprising and doesn't work with our general approach for retrying forwarded APIs. In `BrokerToControllerChannelManager`, we only retry after `NOT_CONTROLLER` errors. It would be more consistent with the other Raft APIs if we returned NOT_LEADER_OR_FOLLOWER, but that also means we need additional logic in `BrokerToControllerChannelManager` to handle that error and retry correctly. 



--
This message was sent by Atlassian Jira
(v8.20.7#820007)