-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KAFKA-17978: Fix invalid topology on Task assignment (#17778)
When we introduced "startup tasks" in #16922, we initialized them with no input partitions, because they aren't known until assignment. However, when we update them during assignment, it's possible that we update the topology with the incorrect source topics for some internal topics, due to a difference in the way internal topics are handled for StandbyTasks. To resolve this, we now initialize startup tasks with the correct input partitions, by calculating them from the Topology. When we assign our startup tasks, we now conditionally update their input partitions only if they've actually changed, just as we do for regular StandbyTasks. With this, the E2E tests now pass, as expected. Reviewer: Bruno Cadonna <[email protected]>
- Loading branch information
1 parent
8563955
commit a696b4d
Showing
3 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters