Uploaded image for project: 'Apache Hudi'
  1. Apache Hudi
  2. HUDI-4122

Fix NPE caused by adding kafka nodes

    XMLWordPrintableJSON

Details

    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)

      Attachments

        Issue Links

          Activity

            People

              wangxianghu Xianghu Wang
              wangxianghu Xianghu Wang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: