[ 
https://issues.apache.org/jira/browse/SPARK-52008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated SPARK-52008:
-----------------------------------
    Labels: pull-request-available  (was: )

> Add TaskCompletionListener for state stores that abort updating store and 
> throw error
> -------------------------------------------------------------------------------------
>
>                 Key: SPARK-52008
>                 URL: https://issues.apache.org/jira/browse/SPARK-52008
>             Project: Spark
>          Issue Type: Task
>          Components: Structured Streaming
>    Affects Versions: 4.0.0
>            Reporter: Livia Zhu
>            Priority: Major
>              Labels: pull-request-available
>
> When a user defines a function with foreachBatch that does not completely 
> consume the passed in iterator, state stores will be opened but not committed 
> when the batch finishes and no error will be thrown. This will lead to 
> "changelog/delta file not found" error for the next batch which confuses 
> users.
> Instead, we should explicitly throw an error in the TaskCompletionListener 
> that will abort any state stores still in the updating state and throw an 
> exception to fail the task (if the task is not already failed or interrupted).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to