jnh5y commented on code in PR #257:
URL:
https://github.com/apache/flink-connector-kafka/pull/257#discussion_r3334758263
##########
flink-connector-kafka/src/main/java/org/apache/flink/connector/kafka/source/reader/KafkaPartitionSplitReader.java:
##########
@@ -240,13 +240,18 @@ public void close() throws Exception {
public void pauseOrResumeSplits(
Collection<KafkaPartitionSplit> splitsToPause,
Collection<KafkaPartitionSplit> splitsToResume) {
+ // Filter against current assignment to avoid IllegalStateException
when a partition
+ // was concurrently unassigned by fetch() or removeEmptySplits().
+ Set<TopicPartition> assigned = consumer.assignment();
Review Comment:
Ok, how does this look?
https://github.com/apache/flink-connector-kafka/compare/5a53da774d83ce6ddccdf04ebbdbf015c58e9d40..12701fa48b54693fda5d5bdb7034aadcfba321a1
I think there are a lot of ways this could look; happy to go with something
else if you prefer.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]