cloud-fan commented on a change in pull request #28707:
URL: https://github.com/apache/spark/pull/28707#discussion_r441489165
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/StateStore.scala
##########
@@ -143,6 +145,16 @@ case class StateStoreCustomSumMetric(name: String, desc:
String) extends StateSt
case class StateStoreCustomSizeMetric(name: String, desc: String) extends
StateStoreCustomMetric
case class StateStoreCustomTimingMetric(name: String, desc: String) extends
StateStoreCustomMetric
+/**
+ * An exception thrown when an invalid UnsafeRow is detected in state store.
+ */
+class InvalidUnsafeRowException
+ extends SparkException("The streaming query failed by state format
invalidation. " +
+ "The following reasons may cause this: 1. An old Spark version wrote the
checkpoint that is " +
+ "incompatible with the current one; 2. Broken checkpoint files; 3. The
query is changed " +
+ "among restart. For the first case, you can try to restart the application
without " +
Review comment:
`For the first case`: I think it's for the cases?
----------------------------------------------------------------
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]