lucliu1108 opened a new pull request, #24179:
URL: https://github.com/apache/kafka/pull/24179

   The `controlledShutdownEnable` branch in `BrokerServer#shutdown` had no test 
covering its effect on leadership. This adds 
`ControlledShutdownIntegrationTest`, which shuts down the leader of a partition 
in a 3-broker KRaft cluster and checks the partition state.
   
   - With `controlled.shutdown.enable=true`, leadership has moved to another 
replica and the shut-down broker is out of the ISR by the time shutdown 
returns, well before the broker session timeout.
   - With `controlled.shutdown.enable=false`, the shut-down broker is still the 
leader and in the ISR right after shutdown returns. Leadership moves only after 
the broker session times out.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to