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

Cannot save namespace after renaming a directory above a file with an open lease

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.23.1, 1.2.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      When i execute the following operations and wait for checkpoint to complete.

      fs.mkdirs(new Path("/test1"));
      FSDataOutputStream create = fs.create(new Path("/test/abc.txt")); //dont close
      fs.rename(new Path("/test/"), new Path("/test1/"));

      Check-pointing is failing with the following exception.

      2012-01-23 15:03:14,204 ERROR namenode.FSImage (FSImage.java:run(795)) - Unable to save image for E:\HDFS-1623\hadoop-hdfs-project\hadoop-hdfs\build\test\data\dfs\name3
      java.io.IOException: saveLeases found path /test1/est/abc.txt but no matching entry in namespace.[/test1/est/abc.txt]
      at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.saveFilesUnderConstruction(FSNamesystem.java:4336)
      at org.apache.hadoop.hdfs.server.namenode.FSImageFormat$Saver.save(FSImageFormat.java:588)
      at org.apache.hadoop.hdfs.server.namenode.FSImage.saveFSImage(FSImage.java:761)
      at org.apache.hadoop.hdfs.server.namenode.FSImage$FSImageSaver.run(FSImage.java:789)
      at java.lang.Thread.run(Unknown Source)

        Attachments

        1. hdfs-2827-b1.txt
          4 kB
          Eli Collins
        2. HDFS-2827.patch
          4 kB
          Uma Maheswara Rao G
        3. HDFS-2827-test.patch
          2 kB
          Aaron T. Myers

          Activity

            People

            • Assignee:
              umamaheswararao Uma Maheswara Rao G
              Reporter:
              umamaheswararao Uma Maheswara Rao G
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: