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 2022/05/19 07:56:43 UTC
[GitHub] [hudi] wangxianghu commented on a diff in pull request #5632: [HUDI-4122] Fix NPE caused by adding kafka nodes
wangxianghu commented on code in PR #5632:
URL: https://github.com/apache/hudi/pull/5632#discussion_r876730139
##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/KafkaOffsetGen.java:
##########
@@ -236,8 +242,7 @@ public OffsetRange[] getNextOffsetRanges(Option<String> lastCheckpointStr, long
if (!checkTopicExists(consumer)) {
throw new HoodieException("Kafka topic:" + topicName + " does not exist");
}
- List<PartitionInfo> partitionInfoList;
- partitionInfoList = consumer.partitionsFor(topicName);
Review Comment:
NPE is caused by `partitionInfoList `'s being null
--
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: commits-unsubscribe@hudi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org