Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-462

Unit tests not working under Windows

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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

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

        Issue Links

          Activity

          Luca Telloli created issue -
          Konstantin Shvachko made changes -
          Field Original Value New Value
          Fix Version/s 0.21.0 [ 12314046 ]
          Affects Version/s 0.21.0 [ 12314046 ]
          Environment Windows
          Component/s name-node [ 12312926 ]
          Konstantin Shvachko made changes -
          Link This issue blocks HDFS-456 [ HDFS-456 ]
          Jakob Homan made changes -
          Assignee Jakob Homan [ jghoman ]
          Tsz Wo Nicholas Sze made changes -
          Tsz Wo Nicholas Sze made changes -
          Link This issue relates to HDFS-396 [ HDFS-396 ]
          Jakob Homan made changes -
          Attachment HDFS-462.patch [ 12413051 ]
          Jakob Homan made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Konstantin Shvachko made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Resolution Fixed [ 1 ]
          Tom White made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development