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

   When the `BrokerServer` starts its shutting down process, it transitions to 
`SHUTTING_DOWN` and sets `isShuttingDown` to `true`. With this state change, 
the follower state changes are short-cutted. This means that a broker which was 
serving as leader would remain acting as a leader until controlled shutdown 
completes. Instead, we want the leader and ISR state to be updated so that 
requests will return NOT_LEADER and the client can find the new leader.
   
   We missed this case while implementing 
https://github.com/apache/kafka/pull/12187.
   
   This patch fixes the issue and updates an existing test to ensure that 
`isShuttingDown` has not effect. We should consider adding integration tests 
for this as well. We can do this separately.
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to