Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-15477 Enforce ordered snapshot deletion
  3. HDFS-15590

namenode fails to start when ordered snapshot deletion feature is disabled

    XMLWordPrintableJSON

Details

    Description

      1. Enabled ordered deletion snapshot feature.
      2. Created snapshottable directory - /user/hrt_6/atrr_dir1
      3. Created snapshots s0, s1, s2.
      4. Deleted snapshot s2
      5. Delete snapshot s0, s1, s2 again
      6. Disable ordered deletion snapshot feature
      5. Restart Namenode
      
      Failed to start namenode.
      org.apache.hadoop.hdfs.protocol.SnapshotException: Cannot delete snapshot s2 from path /user/hrt_6/atrr_dir2: the snapshot does not exist.
      	at org.apache.hadoop.hdfs.server.namenode.snapshot.DirectorySnapshottableFeature.removeSnapshot(DirectorySnapshottableFeature.java:237)
      	at org.apache.hadoop.hdfs.server.namenode.INodeDirectory.removeSnapshot(INodeDirectory.java:293)
      	at org.apache.hadoop.hdfs.server.namenode.snapshot.SnapshotManager.deleteSnapshot(SnapshotManager.java:510)
      	at org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader.applyEditLogOp(FSEditLogLoader.java:819)
      	at org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader.loadEditRecords(FSEditLogLoader.java:287)
      	at org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader.loadFSEdits(FSEditLogLoader.java:182)
      	at org.apache.hadoop.hdfs.server.namenode.FSImage.loadEdits(FSImage.java:912)
      	at org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSImage(FSImage.java:760)
      	at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.java:337)
      	at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFSImage(FSNamesystem.java:1164)
      	at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:755)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:646)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:717)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:960)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:933)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1670)
      	at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1737)
      
      

      Attachments

        Issue Links

          Activity

            People

              shashikant Shashikant Banerjee
              nilotpalnandi Nilotpal Nandi
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 40m
                  1h 40m