Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-462

Unit tests not working under Windows

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.21.0
    • Fix Version/s: 0.21.0
    • Component/s: namenode, test
    • Labels:
      None
    • Environment:

      Windows

    • Hadoop Flags:
      Reviewed

      Description

      Unit tests are failing on windows due to a problem with rename.
      The failing code is around line 520 in FSImage.java:

            assert curDir.exists() : "Current directory must exist.";
            assert !prevDir.exists() : "prvious directory must not exist.";
            assert !tmpDir.exists() : "prvious.tmp directory must not exist.";
            // rename current to tmp
            rename(curDir, tmpDir);
            // save new image
            if (!curDir.mkdir())
              throw new IOException("Cannot create directory " + curDir);
      

      and seems related to some open file or directory

        Attachments

        1. TEST-org.apache.hadoop.hdfs.TestHdfs.txt
          10 kB
          Tsz Wo Nicholas Sze
        2. HDFS-462.patch
          2 kB
          Jakob Homan

          Issue Links

            Activity

              People

              • Assignee:
                jghoman Jakob Homan
                Reporter:
                lucat Luca Telloli
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: