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

Unit tests not working under Windows

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment