cadonna opened a new pull request, #12687: URL: https://github.com/apache/kafka/pull/12687
When the state updater only contains standby tasks and then a standby task is removed, an IllegalStateException is thrown because the changelog reader does not allow to switch to standby updating mode more than once in a row. This commit fixes this bug by checking that the removed task is an active one before trying to switch to standby updating mode. If the task to remove is a standby task then either we are already in standby updating mode and we should not switch to it again or we are not in standby updating mode which implies that there are still active tasks that would prevent us to switch to standby updating mode. ### 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