[ 
https://issues.apache.org/jira/browse/SPARK-13693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15258867#comment-15258867
 ] 

Josh Rosen commented on SPARK-13693:
------------------------------------

I think that I've spotted the race:

If the stopping thread enters the synchronized block in 
{{CheckpointWriter.stop()}}, it will block the writer thread, who needs to 
synchronize on the same lock to access {{fs}}.

> Flaky test: o.a.s.streaming.MapWithStateSuite
> ---------------------------------------------
>
>                 Key: SPARK-13693
>                 URL: https://issues.apache.org/jira/browse/SPARK-13693
>             Project: Spark
>          Issue Type: Test
>          Components: Tests
>            Reporter: Shixiong Zhu
>            Assignee: Shixiong Zhu
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> Fixed the following flaky test:
> https://amplab.cs.berkeley.edu/jenkins/job/spark-master-test-sbt-hadoop-2.7/256/testReport/junit/org.apache.spark.streaming/MapWithStateSuite/_It_is_not_a_test_/
> {code}
> sbt.ForkMain$ForkError: java.io.IOException: Failed to delete: 
> /home/jenkins/workspace/spark-master-test-sbt-hadoop-2.7/streaming/checkpoint/spark-e97794a8-b940-4b21-8685-bf1221f9444d
>       at org.apache.spark.util.Utils$.deleteRecursively(Utils.scala:934)
>       at 
> org.apache.spark.streaming.MapWithStateSuite$$anonfun$2.apply$mcV$sp(MapWithStateSuite.scala:47)
>       at 
> org.apache.spark.streaming.MapWithStateSuite$$anonfun$2.apply(MapWithStateSuite.scala:45)
>       at 
> org.apache.spark.streaming.MapWithStateSuite$$anonfun$2.apply(MapWithStateSuite.scala:45)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to