Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-3418

NameNode does not restart if parent directory of a "FileUnderConstruction" is deleted.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • 0.18.0
    • None
    • None
    • Reviewed

    Description

      How to reproduce :

      $ bin/hadoop fs -put largeFile tmp/tmpFile
      ...before this finishes
      $ bin/hadoop fs -rmr tmp
      Now restart NameNode.
      Restart fails with :

      2008-05-20 02:21:34,731 ERROR org.apache.hadoop.dfs.NameNode: java.io.IOException: saveLeases found path /user/rangadi/tmp/tmpFile but no matching entry in namespace.
              at org.apache.hadoop.dfs.FSNamesystem.saveFilesUnderConstruction(FSNamesystem.java:4215)
              at org.apache.hadoop.dfs.FSImage.saveFSImage(FSImage.java:848)
              at org.apache.hadoop.dfs.FSImage.saveFSImage(FSImage.java:866)
              at org.apache.hadoop.dfs.FSDirectory.loadFSImage(FSDirectory.java:82)
              at org.apache.hadoop.dfs.FSNamesystem.initialize(FSNamesystem.java:273)
              at org.apache.hadoop.dfs.FSNamesystem.<init>(FSNamesystem.java:253)
              at org.apache.hadoop.dfs.NameNode.initialize(NameNode.java:148)
              at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:193)
              at org.apache.hadoop.dfs.NameNode.<init>(NameNode.java:179)
      

      Attachments

        1. 3418_20080610.patch
          18 kB
          Tsz-wo Sze
        2. 3418_20080609b.patch
          17 kB
          Tsz-wo Sze
        3. 3418_20080609.patch
          6 kB
          Tsz-wo Sze

        Issue Links

        Activity

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

          People

            szetszwo Tsz-wo Sze
            rangadi Raghu Angadi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment