Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-1511

Update TestUtils.createCompiledClass() API to work with creating class file on different filesystem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.8.1, 0.9.0, 1.0.0
    • 1.0.0
    • Spark Core
    • Mac OS X, two disks.

    Description

      The createCompliedClass method uses java File.renameTo method to rename source file to destination file, which will fail if source and destination files are on different disks (or partitions).

      see http://apache-spark-developers-list.1001551.n3.nabble.com/Tests-failed-after-assembling-the-latest-code-from-github-td6315.html for more details.

      Use com.google.common.io.Files.move instead of renameTo will solve this issue.

      Attachments

        Activity

          People

            Unassigned Unassigned
            advancedxy YE
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified