kafka
kafka copied to clipboard
[LI-HOTFIX] Add exponential backoff for retry interval of ControlledShutdown request
TICKET = LIKAFKA-58549 LI_DESCRIPTION = When a broker sends ControlledShutdown request to the controller, the controller will move the leaders from that broker to other replicas (this would involve leader election, sending updateLeaderAndIsr requests to zookeeper, and sending LeaderAndIsr requests to brokers to update metadata), and then the controller will send the response to the broker about the leaders that are still on the broker. If there are still leaders on the broker, the broker will retry ControlledShutdown request. When the controller is already overwhelmed by its existing work, sending frequent ControlledShutdown requests will worsen the situation.
Thus, in the PR, we add exponential backoff for retry interval of ControlledShutdown request to back off more when there are delays in moving leaders from the broker.
EXIT_CRITERIA = NA
Testing Done Tested in dev machine