WweiL commented on code in PR #45221:
URL: https://github.com/apache/spark/pull/45221#discussion_r1503124502


##########
common/utils/src/main/resources/error/error-classes.json:
##########
@@ -2622,6 +2622,62 @@
     ],
     "sqlState" : "42K0E"
   },
+  "KAFKA_DATA_LOSS" : {
+    "message" : [
+      "Some data may have been lost because they are not available in Kafka 
any more;",
+      "either the data was aged out by Kafka or the topic may have been 
deleted before all the data in the",
+      "topic was processed.",
+      "If you don't want your streaming query to fail on such cases, set the 
source option failOnDataLoss to false.",
+      "Reason:"

Review Comment:
   I think this replaces `INSTRUCTION_FOR_FAIL_ON_DATA_LOSS_TRUE` defined in 
`KafkaSourceProvider`. Do we want to remove it, or is this like a first step 
and there are other error classes depending on this one? 



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to