[ https://issues.apache.org/jira/browse/HDFS-2281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13098838#comment-13098838 ]
Hudson commented on HDFS-2281: ------------------------------ Integrated in Hadoop-Hdfs-22-branch #82 (See [https://builds.apache.org/job/Hadoop-Hdfs-22-branch/82/]) HDFS-2281. NPE in checkpoint during processIOError(). Contributed by Uma Maheswara Rao G. shv : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1165943 Files : * /hadoop/common/branches/branch-0.22/hdfs/CHANGES.txt * /hadoop/common/branches/branch-0.22/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileOutputStream.java * /hadoop/common/branches/branch-0.22/hdfs/src/java/org/apache/hadoop/hdfs/server/namenode/FSImage.java * /hadoop/common/branches/branch-0.22/hdfs/src/test/hdfs/org/apache/hadoop/hdfs/server/namenode/TestCheckpoint.java > NPE in checkpoint during processIOError() > ----------------------------------------- > > Key: HDFS-2281 > URL: https://issues.apache.org/jira/browse/HDFS-2281 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 0.22.0 > Reporter: Konstantin Shvachko > Assignee: Uma Maheswara Rao G > Fix For: 0.22.0 > > Attachments: BN-bug-NPE.txt, HDFS-2281.1.patch, HDFS-2281.patch > > > At the end of checkpoint BackupNode tries to convergeJournalSpool() and calls > revertFileStreams(). The latter closes each file stream, and tries to rename > the corresponding file to its permanent location current/edits. If for any > reason the rename fails processIOError() is called for failed streams. > processIOError() will try to close the stream again and will get NPE in > EditLogFileOutputStream.close() because bufCurrent was set to null by the > previous close. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira