[
https://issues.apache.org/jira/browse/SPARK-47734?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dongjoon Hyun closed SPARK-47734.
---------------------------------
> Fix flaky pyspark.sql.dataframe.DataFrame.writeStream doctest by stopping
> streaming query
> -----------------------------------------------------------------------------------------
>
> Key: SPARK-47734
> URL: https://issues.apache.org/jira/browse/SPARK-47734
> Project: Spark
> Issue Type: Improvement
> Components: PySpark, Tests
> Affects Versions: 4.0.0
> Reporter: Josh Rosen
> Assignee: Josh Rosen
> Priority: Major
> Labels: pull-request-available
> Fix For: 3.5.2, 3.4.3, 4.0.0
>
>
> https://issues.apache.org/jira/browse/SPARK-47199 didn't fix the flakiness in
> the pyspark.sql.dataframe.DataFrame.writeStream doctest : the problem is not
> that we are colliding on the test but, rather, that the test is starting a
> background thread to write to a directory then deleting that directory from
> the main test thread, something which is inherently race prone.
> The fix is simple: stop the streaming query in the doctest itself, similar to
> other streaming doctest examples.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]