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
Copy link

github-actions bot commented Oct 7, 2025

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants