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

Hudi Streamer with row writer enabled hits NPE with empty batch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 0.14.1
    • None

    Description

      Hudi Streamer with row writer enabled hits NPE with empty batch (the checkpoint has advanced)

      java.lang.NullPointerException
      	at org.apache.hudi.HoodieSparkSqlWriter$.getBulkInsertRowConfig(HoodieSparkSqlWriter.scala:1190)
      	at org.apache.hudi.HoodieSparkSqlWriter.getBulkInsertRowConfig(HoodieSparkSqlWriter.scala)
      	at org.apache.hudi.utilities.streamer.StreamSync.prepareHoodieConfigForRowWriter(StreamSync.java:801)
      	at org.apache.hudi.utilities.streamer.StreamSync.writeToSink(StreamSync.java:939)
      	at org.apache.hudi.utilities.streamer.StreamSync.writeToSinkAndDoMetaSync(StreamSync.java:819)
      	at org.apache.hudi.utilities.streamer.StreamSync.syncOnce(StreamSync.java:458)
      	at org.apache.hudi.utilities.streamer.HoodieStreamer$StreamSyncService.ingestOnce(HoodieStreamer.java:850)
      	at org.apache.hudi.common.util.Option.ifPresent(Option.java:97) 

      Attachments

        Issue Links

          Activity

            People

              shivnarayan sivabalan narayanan
              guoyihua Ethan Guo (this is the old account; please use "yihua")
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: