flyrain opened a new pull request #2552: URL: https://github.com/apache/iceberg/pull/2552
We need the same thing as [here](https://github.com/apache/iceberg/blob/83886c87f516afed7e625bed7f5749838217138c/core/src/main/java/org/apache/iceberg/SnapshotProducer.java#L315) in the context of eventual consistency. Otherwise, we hits a NPE like this. We need a fix even though it is a WARN. ``` timestamp="2021-04-23T22:35:23,938+0000",level="WARN",threadName="pool-1-thread-1",appName="spark-driver",logger="org.apache.iceberg.SnapshotProducer",message="Failed to notify listeners",exception="java.lang.NullPointerException at org.apache.iceberg.MergingSnapshotProducer.updateEvent(MergingSnapshotProducer.java:377) at org.apache.iceberg.SnapshotProducer.notifyListeners(SnapshotProducer.java:329) at org.apache.iceberg.SnapshotProducer.commit(SnapshotProducer.java:324) at org.apache.iceberg.spark.source.SparkWrite.commitOperation(SparkWrite.java:236) ``` -- 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: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
