[
https://issues.apache.org/jira/browse/SPARK-52008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Anish Shrigondekar resolved SPARK-52008.
----------------------------------------
Fix Version/s: 4.1.0
Resolution: Fixed
> 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
> Assignee: Eric Marnadi
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.1.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]