Hello all, We have a kafka consumer listening to a topic pattern "topic-*" with a partition discovery interval. We eventually add new topics and this is working perfectly, the consumer discover the new topics (and partitions) and listen to them.
But we also remove topics eventually and in this case the consumer is not updated. The consumer continue listen to the removed partitions *forever* and we get logs like: 2018-05-04 11:32:11,462 WARN org.apache.kafka.clients.NetworkClient - Error while fetching metadata with correlation id 1154 : {topic-123=UNKNOWN_TOPIC_OR_PARTITION} 2018-05-04 11:32:11,965 WARN org.apache.kafka.clients.NetworkClient - Error while fetching metadata with correlation id 1156 : {topic-123=UNKNOWN_TOPIC_OR_PARTITION} 2018-05-04 11:32:12,468 WARN org.apache.kafka.clients.NetworkClient - Error while fetching metadata with correlation id 1158 : {topic-123=UNKNOWN_TOPIC_OR_PARTITION} 2018-05-04 11:32:12,970 WARN org.apache.kafka.clients.NetworkClient - Error while fetching metadata with correlation id 1160 : {topic-123=UNKNOWN_TOPIC_OR_PARTITION} 2018-05-04 11:32:13,473 WARN org.apache.kafka.clients.NetworkClient - Error while fetching metadata with correlation id 1162 : {topic-123=UNKNOWN_TOPIC_OR_PARTITION} ... This requests continue *forever* and the logs are shown several times per second hiding other possible problems and it's using resources that could be freed for other processing. I think the partition discovery mechanism should be modified to take into account not only new partitions but also removing no longer available partitions. What do you think ? Regards, Edward -- Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/