Skip to content

Conversation

josefk31
Copy link
Contributor

Allow users to perform an unclean leadership election by designated a specific replica as the leader as part of the ElectLeadersRequest.

mannoopj and others added 2 commits September 29, 2025 10:18
add new field to ElectLeaderRequest
add desiredLeaders to ElectLeadersRequest
add designated election type
fix test cases for new ElectLeaderRequest
add TopicPartitionDesignated
fix semantics
add more error handling
change error thrown

Conflicts:
	core/src/main/scala/kafka/controller/KafkaController.scala
	core/src/test/scala/unit/kafka/utils/TestUtils.scala
	metadata/src/main/java/org/apache/kafka/controller/PartitionChangeBuilder.java
	tools/src/test/java/org/apache/kafka/tools/LeaderElectionCommandTest.java

Avoided merging some of the test conflicts; kept TestUtils.scala changes.
- Actually implemented the code
- Started creating some of the tests
@github-actions github-actions bot added tools kraft clients triage PRs from the community labels Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants