Github user lw-lin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12323#discussion_r59318208
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/state/HDFSBackedStateStoreProvider.scala
 ---
    @@ -161,24 +163,27 @@ private[state] class HDFSBackedStateStoreProvider(
           }
         }
     
    -    /** Cancel all the updates made on this store. This store will not be 
usable any more. */
    +    /** Abort all the updates made on this store. This store will not be 
usable any more. */
         override def abort(): Unit = {
    +      verify(state == UPDATING || state == ABORTED, "Cannot abort after 
already committed")
    --- End diff --
    
    Let's disallow calling `abort()` on a state store when it has been 
committed -- deltas or snapshots possibly has been already flushed onto HDFS.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to