-
-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
client: create a sink & source for all partition replicas
Previously, if using preferred read replicas, if a replica is not the leader for any partition, then the sink&source is never created. The leader will say "consume from 3", and the client will not have 3 saved because it only saves the leader. We now create a sink&source for all replicas of a partition as well. Now, when a leader says "consume from 3", we should have 3 saved because it will be in the Replicas portion of a MetadataResponseTopicPartition. This also tidies up some repeated locking code for sinks and sources.
- Loading branch information
Showing
3 changed files
with
30 additions
and
22 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