[
https://issues.apache.org/jira/browse/KAFKA-21376?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai resolved KAFKA-21376.
------------------------------------
Fix Version/s: 4.5.0
Resolution: Fixed
> Move AdminUtils#fetchOrWaitForLeader to clients test fixtures and consolidate
> it with ClusterInstance#getLeaderBrokerId
> -----------------------------------------------------------------------------------------------------------------------
>
> Key: KAFKA-21376
> URL: https://issues.apache.org/jira/browse/KAFKA-21376
> Project: Kafka
> Issue Type: Improvement
> Reporter: Chia-Ping Tsai
> Assignee: Muralidhar Basani
> Priority: Minor
> Fix For: 4.5.0
>
>
> We have the test fixtures source set in clients now, so
> {{AdminUtils#fetchOrWaitForLeader}} can be moved there. Also,
> {{ClusterInstance#getLeaderBrokerId}} does the same thing but throws NPE when
> the partition has no leader, so it should be replaced by
> {{fetchOrWaitForLeader}} and the two consolidated.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)