voonhous commented on code in PR #19166:
URL: https://github.com/apache/hudi/pull/19166#discussion_r3523497751
##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/hudi/functional/TestStructuredStreaming.scala:
##########
@@ -508,6 +508,52 @@ class TestStructuredStreaming extends
HoodieSparkClientTestBase {
assertEquals(25, metaClient.getActiveTimeline.countInstants())
}
+ /**
+ * Injects a failing micro-batch into [[HoodieStreamingSink]] by pointing
the record key at a
+ * non-existent column so that every Hudi write throws. With
STREAMING_IGNORE_FAILED_BATCH
+ * enabled the sink must swallow the failure (unpersisting the write RDDs),
let the streaming
+ * query complete without crashing, and produce no commit.
+ */
+ @Test
+ def testStructuredStreamingIgnoreFailedBatch(): Unit = {
+ val (sourcePath, destPath) = initStreamingSourceAndDestPath("source",
"dest")
+ val records1 = recordsToStrings(dataGen.generateInsertsForPartition(
Review Comment:
ignore for now.
--
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]