Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-686

NullPointerException is thrown while merging edit log and image

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.20.1, 0.21.0
    • Fix Version/s: None
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      Error merging image and edits corrected.

      Description

      Our secondary name node is not able to start on NullPointerException:
      ERROR org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode: java.lang.NullPointerException
      at org.apache.hadoop.hdfs.server.namenode.FSDirectory.unprotectedSetTimes(FSDirectory.java:1232)
      at org.apache.hadoop.hdfs.server.namenode.FSDirectory.unprotectedSetTimes(FSDirectory.java:1221)
      at org.apache.hadoop.hdfs.server.namenode.FSEditLog.loadFSEdits(FSEditLog.java:776)
      at org.apache.hadoop.hdfs.server.namenode.FSImage.loadFSEdits(FSImage.java:992)
      at
      org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode$CheckpointStorage.doMerge(SecondaryNameNode.java:590)
      at
      org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode$CheckpointStorage.access$000(SecondaryNameNode.java:473)
      at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.doMerge(SecondaryNameNode.java:350)
      at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.doCheckpoint(SecondaryNameNode.java:314)
      at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.run(SecondaryNameNode.java:225)
      at java.lang.Thread.run(Thread.java:619)

      This was caused by setting access time on a non-existent file.

      1. nullSetTime.patch
        1 kB
        Hairong Kuang
      2. openNPE.patch
        1 kB
        Hairong Kuang
      3. openNPE-trunk.patch
        1 kB
        Hairong Kuang

        Issue Links

          Activity

          Jeff Hammerbacher made changes -
          Link This issue relates to HDFS-1002 [ HDFS-1002 ]
          Hairong Kuang made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Chris Douglas made changes -
          Fix Version/s 0.21.0 [ 12314046 ]
          Fix Version/s 0.20.2 [ 12314204 ]
          Todd Lipcon made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          ryan rawson made changes -
          Affects Version/s 0.21.0 [ 12314046 ]
          Priority Major [ 3 ] Blocker [ 1 ]
          Robert Chansler made changes -
          Release Note Error merging image and edits corrected.
          Hairong Kuang made changes -
          Attachment nullSetTime.patch [ 12422116 ]
          Hairong Kuang made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Hadoop Flags [Reviewed]
          Resolution Fixed [ 1 ]
          Hairong Kuang made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Fix Version/s 0.21.0 [ 12314046 ]
          Hairong Kuang made changes -
          Attachment openNPE-trunk.patch [ 12421784 ]
          Hairong Kuang made changes -
          Field Original Value New Value
          Attachment openNPE.patch [ 12421668 ]
          Hairong Kuang created issue -

            People

            • Assignee:
              Hairong Kuang
              Reporter:
              Hairong Kuang
            • Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development