You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by GitBox <gi...@apache.org> on 2020/09/15 09:54:28 UTC
[GitHub] [hudi] yanghua commented on a change in pull request #2090: [HUDI-1282] Should check whether the topic exists before deltastrmer consumes Kafka
yanghua commented on a change in pull request #2090:
URL: https://github.com/apache/hudi/pull/2090#discussion_r488538950
##########
File path: hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/KafkaOffsetGen.java
##########
@@ -172,6 +172,9 @@ public KafkaOffsetGen(TypedProperties props) {
Map<TopicPartition, Long> fromOffsets;
Map<TopicPartition, Long> toOffsets;
try (KafkaConsumer consumer = new KafkaConsumer(kafkaParams)) {
+ if (!checkTopicExists(consumer)) {
+ throw new HoodieException("topic does not exist :" + topicName);
Review comment:
-> `Kafka topic : xxx does not exist.`
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org