jeffkbkim opened a new pull request #9050: URL: https://github.com/apache/kafka/pull/9050
JIRA: https://issues.apache.org/jira/browse/KAFKA-10193 * add `preempt(): Unit` method for all `ControllerEvent` so that all events (and future events) must implement it * for events that have callbacks, move the preemption from individual methods to `preempt()` * add preemption for `ApiPartitionReassignment`and `ListPartitionReassignments` * add integration tests: 1. test whether `preempt()` is called when controller shuts down 2. test whether the events with callbacks have the correct error response (`NOT_CONTROLLER`) * explicit typing for `ControllerEvent` methods ### 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org