Details
-
Task
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
None
-
None
-
None
Description
Add tests for electLeaders in AdminClientIntegrationTest. Some cases that we should cover:
- Topic doesn't exists => UNKNOWN_TOPIC_OR_PARTITION
- Unclean/preferred election not needed => ELECTION_NOT_NEEDED
- Unclean/preferred election not possible => ELIGIBLE_LEADERS_NOT_AVAILABLE
- Election succeeded => NONE
- All partition (partitions==null) => NONE for all performed election. The result map should only contain NONE.
Attachments
Issue Links
- relates to
-
KAFKA-8286 KIP-460 Admin Leader Election RPC
- Resolved
- links to