Пример #1
0
 def changelog_distribution(self, value: HostToPartitionMap) -> None:
     self._changelog_distribution = value
     self._tps_url = {
         TP(topic, partition): url
         for url, tps in self._changelog_distribution.items()
         for topic, partitions in tps.items() for partition in partitions
     }
Пример #2
0
 def assigned_actives(self) -> Set[TP]:
     return {
         TP(topic, partition)
         for topic, partitions in self._assignment.actives.items()
         for partition in partitions
     }
Пример #3
0
 def assigned_standbys(self) -> Set[TP]:
     return {
         TP(topic, partition)
         for topic, partitions in self._assignment.standbys.items()
         for partition in partitions
     }