fozzie15 commented on code in PR #34258: URL: https://github.com/apache/beam/pull/34258#discussion_r2004174724
########## sdks/java/io/kafka/src/main/java/org/apache/beam/sdk/io/kafka/KafkaIO.java: ########## @@ -1901,13 +1902,32 @@ public void processElement(OutputReceiver<KafkaSourceDescriptor> receiver) { for (Map.Entry<String, List<PartitionInfo>> entry : consumer.listTopics().entrySet()) { if (pattern.matcher(entry.getKey()).matches()) { + List<PartitionInfo> partitionInfoList = entry.getValue(); + if (partitionInfoList == null) { + LOG.warn( + "Could not find any partitions info for topic {}. Please check Kafka configuration and make sure " + + "that provided topics exist.", + entry.getKey()); + } Review Comment: Removed the log logic due to this. Thanks! -- 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: github-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org