codope commented on code in PR #6098:
URL: https://github.com/apache/hudi/pull/6098#discussion_r928103368
##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieStreamingSink.scala:
##########
@@ -78,26 +82,61 @@ class HoodieStreamingSink(sqlContext: SQLContext,
log.error("Async clustering service shutdown unexpectedly")
throw new IllegalStateException("Async clustering service shutdown
unexpectedly")
}
+
+ // get the latest checkpoint from the commit metadata to check if the
microbatch has already been prcessed or not
+ if (metaClient != null) {
Review Comment:
That's a very good point! The intention is to check it in every batch.
Actually, i did initialize the metaclient in my base commit but i missed it
after rebase. Thanks for catching it. Have fixed it.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]