You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "Xianghu Wang (Jira)" <ji...@apache.org> on 2022/05/19 07:17:00 UTC
[jira] [Updated] (HUDI-4122) Fix NPE caused by adding kafka nodes
[ https://issues.apache.org/jira/browse/HUDI-4122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xianghu Wang updated HUDI-4122:
-------------------------------
Description:
Yesterday, when we add more nodes to kafka cluster, some of our hudi tasks failed with a NPE as below:
Caused by: java.lang.NullPointerException
at org.apache.hudi.utilities.sources.helpers.KafkaOffsetGen.getNextOffsetRanges(KafkaOffsetGen.java:241)
at org.apache.hudi.utilities.sources.JsonKafkaSource.fetchNewData(JsonKafkaSource.java:67)
at org.apache.hudi.utilities.sources.Source.fetchNext(Source.java:76)
at org.apache.hudi.utilities.deltastreamer.SourceFormatAdapter.fetchNewDataInAvroFormat(SourceFormatAdapter.java:63)
at org.apache.hudi.utilities.deltastreamer.DeltaSync.readFromSource(DeltaSync.java:430)
at org.apache.hudi.utilities.deltastreamer.DeltaSync.syncOnce(DeltaSync.java:283)
at org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer$DeltaSyncService.lambda$startService$0(HoodieDeltaStreamer.java:641)
was:
Yesterday, when we add more nodes to kafka cluster, some of our hudi tasks failed due a NPE as below:
Caused by: java.lang.NullPointerException
at org.apache.hudi.utilities.sources.helpers.KafkaOffsetGen.getNextOffsetRanges(KafkaOffsetGen.java:241)
at org.apache.hudi.utilities.sources.JsonKafkaSource.fetchNewData(JsonKafkaSource.java:67)
at org.apache.hudi.utilities.sources.Source.fetchNext(Source.java:76)
at org.apache.hudi.utilities.deltastreamer.SourceFormatAdapter.fetchNewDataInAvroFormat(SourceFormatAdapter.java:63)
at org.apache.hudi.utilities.deltastreamer.DeltaSync.readFromSource(DeltaSync.java:430)
at org.apache.hudi.utilities.deltastreamer.DeltaSync.syncOnce(DeltaSync.java:283)
at org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer$DeltaSyncService.lambda$startService$0(HoodieDeltaStreamer.java:641)
> Fix NPE caused by adding kafka nodes
> ------------------------------------
>
> Key: HUDI-4122
> URL: https://issues.apache.org/jira/browse/HUDI-4122
> Project: Apache Hudi
> Issue Type: Improvement
> Components: deltastreamer
> Reporter: Xianghu Wang
> Assignee: Xianghu Wang
> Priority: Major
>
> Yesterday, when we add more nodes to kafka cluster, some of our hudi tasks failed with a NPE as below:
> Caused by: java.lang.NullPointerException
> at org.apache.hudi.utilities.sources.helpers.KafkaOffsetGen.getNextOffsetRanges(KafkaOffsetGen.java:241)
> at org.apache.hudi.utilities.sources.JsonKafkaSource.fetchNewData(JsonKafkaSource.java:67)
> at org.apache.hudi.utilities.sources.Source.fetchNext(Source.java:76)
> at org.apache.hudi.utilities.deltastreamer.SourceFormatAdapter.fetchNewDataInAvroFormat(SourceFormatAdapter.java:63)
> at org.apache.hudi.utilities.deltastreamer.DeltaSync.readFromSource(DeltaSync.java:430)
> at org.apache.hudi.utilities.deltastreamer.DeltaSync.syncOnce(DeltaSync.java:283)
> at org.apache.hudi.utilities.deltastreamer.HoodieDeltaStreamer$DeltaSyncService.lambda$startService$0(HoodieDeltaStreamer.java:641)
--
This message was sent by Atlassian Jira
(v8.20.7#820007)