Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-17591 Fix/investigate the failure of tests in Scala On Windows
  3. SPARK-18423

ReceiverTracker should close checkpoint dir when stopped even if it was not started

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • DStreams
    • None

    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.

      Attachments

        Activity

          People

            gurwls223 Hyukjin Kwon
            gurwls223 Hyukjin Kwon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: