Description
Running org.apache.spark.streaming.JavaAPISuite Tests run: 53, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 22.325 sec <<< FAILURE! - in org.apache.spark.streaming.JavaAPISuite testCheckpointMasterRecovery(org.apache.spark.streaming.JavaAPISuite) Time elapsed: 3.418 sec <<< ERROR! java.io.IOException: Failed to delete: C:\projects\spark\streaming\target\tmp\1474255953021-0 at org.apache.spark.streaming.JavaAPISuite.testCheckpointMasterRecovery(JavaAPISuite.java:1808)
mapWithState - basic operations with simple API (7 seconds, 203 milliseconds)
[info] Exception encountered when attempting to run a suite with class name: org.apache.spark.streaming.MapWithStateSuite *** ABORTED *** (12 seconds, 469 milliseconds)
[info] java.io.IOException: Failed to delete: C:\projects\spark\streaming\checkpoint\spark-226c0e37-8c46-4b2a-9c0f-2317cde31d40
These tests seem caused by not closed files in ReceiverTracker. Please refer the discussion in https://github.com/apache/spark/pull/15618#issuecomment-259660817
Root cause is, it is being created and stopped without starting. In this case, `RecieverTracker` does not close checkpoint dir.