You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ye Xianjin (JIRA)" <ji...@apache.org> on 2014/04/16 15:22:15 UTC

[jira] [Created] (SPARK-1511) Update TestUtils.createCompiledClass() API to work with creating class file on different filesystem

Ye Xianjin created SPARK-1511:
---------------------------------

             Summary: Update TestUtils.createCompiledClass() API to work with creating class file on different filesystem
                 Key: SPARK-1511
                 URL: https://issues.apache.org/jira/browse/SPARK-1511
             Project: Spark
          Issue Type: Bug
          Components: Spark Core
    Affects Versions: 1.0.0
         Environment: Mac OS X, two disks. 
            Reporter: Ye Xianjin
            Priority: Minor


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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)