gaborgsomogyi commented on a change in pull request #26935:
URL: https://github.com/apache/spark/pull/26935#discussion_r514319177
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/StateStore.scala
##########
@@ -36,10 +36,14 @@ import org.apache.spark.sql.types.StructType
import org.apache.spark.util.{ThreadUtils, Utils}
/**
- * Base trait for a versioned key-value store. Each instance of a `StateStore`
represents a specific
- * version of state data, and such instances are created through a
[[StateStoreProvider]].
+ * Base trait for a versioned key-value store which provides read operations.
Each instance of a
+ * `ReadStateStore` represents a specific version of state data, and such
instances are created
+ * through a [[StateStoreProvider]].
+ *
+ * `abort` method will be called when the task is completed - please clean up
the resources in
+ * the method.
*/
-trait StateStore {
+trait ReadStateStore {
Review comment:
+1 on this, I've suggested the same but there was another agreement
before.
----------------------------------------------------------------
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]