confluentinc / librdkafka

The Apache Kafka C/C++ library
Other
293 stars 3.15k forks source link

Added Public API rd_kafka_ElectLeaders for Preferred/Unclean Leader Election on Topic Partitions #4843

Closed PratRanj07 closed 2 months ago

PratRanj07 commented 2 months ago

This PR introduces the public API rd_kafka_ElectLeaders, enabling the execution of Preferred or Unclean leader election for specific topic partitions. Additionally, unit tests are also included.