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

Unit tests not working under Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.21.0
    • 0.21.0
    • namenode, test
    • None
    • Windows

    • 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 Sze
        2. HDFS-462.patch
          2 kB
          Jakob Homan

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: