Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
3.8.0
Description
In verifiable_consumer.py, the IncrementalAssignmentConsumerEventHandler contains this logic:
def handle_partitions_revoked(self, event): self.revoked_count += 1 self.state = ConsumerState.Rebalancing self.position = {} for topic_partition in event["partitions"]: topic = topic_partition["topic"] partition = topic_partition["partition"] self.assignment.remove(TopicPartition(topic, partition))
If the self.assignment.remove() call is passed a TopicPartition that isn't in the list, a generic Python list error is thrown. For now, we should first check that the TopicPartition is in the list with an assert that provides better information .
Attachments
Attachments
Issue Links
- links to