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

rootDirs in DiskBlockManagerSuite doesn't get full path from rootDir0, rootDir1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.9.0
    • 1.0.0
    • Spark Core

    Description

      In core/src/test/scala/org/apache/storage/DiskBlockManagerSuite.scala

      val rootDir0 = Files.createTempDir()
      rootDir0.deleteOnExit()
      val rootDir1 = Files.createTempDir()
      rootDir1.deleteOnExit()
      val rootDirs = rootDir0.getName + "," + rootDir1.getName

      rootDir0 and rootDir1 are in system's temporary directory.
      rootDir0.getName will not get the full path of the directory but the last component of the directory. When passing to DiskBlockManage constructor, the DiskBlockerManger creates directories in pwd not the temporary directory.

      rootDir0.toString will fix this issue.

      Attachments

        Activity

          People

            nirajsuthar Niraj Suthar
            advancedxy YE
            Votes:
            0 Vote for this issue
            Watchers:
            3 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