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

Edit log files are never being purged from 2NN

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.0.3-alpha
    • namenode
    • None
    • Reviewed

    Description

      Seeing the following NPE in the SecondaryNameNode when it tries to purge storage after a checkpoint:

      12/07/17 19:05:22 WARN namenode.FSImage: Unable to purge old storage
      java.lang.NullPointerException
      at org.apache.hadoop.hdfs.server.namenode.FSEditLog.purgeLogsOlderThan(FSEditLog.java:1013)
      at org.apache.hadoop.hdfs.server.namenode.NNStorageRetentionManager.purgeOldStorage(NNStorageRetentionManager.java:98)
      at org.apache.hadoop.hdfs.server.namenode.FSImage.purgeOldStorage(FSImage.java:925)
      at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.doCheckpoint(SecondaryNameNode.java:479)

      Attachments

        1. HDFS-3678.patch
          13 kB
          Aaron Myers
        2. HDFS-3678.patch
          14 kB
          Aaron Myers
        3. HDFS-3678.patch
          15 kB
          Aaron Myers

        Issue Links

          Activity

            People

              atm Aaron Myers
              tlipcon Todd Lipcon
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: