Github user tedyu commented on a diff in the pull request:
https://github.com/apache/flink/pull/5991#discussion_r187647828
--- Diff:
flink-connectors/flink-connector-kafka-0.9/src/main/java/org/apache/flink/streaming/connectors/kafka/internal/KafkaConsumerThread.java
---
@@ -80,6 +82,9 @@
/** The queue of unassigned partitions that we need to assign to the
Kafka consumer. */
private final
ClosableBlockingQueue<KafkaTopicPartitionState<TopicPartition>>
unassignedPartitionsQueue;
+ /** The list of partitions to be removed from kafka consumer. */
+ private final List<TopicPartition> partitionsToBeRemoved;
--- End diff --
Should this be Set to facilitate fast lookup ?
---