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

NullPointerException in internalReleaseCreate

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 0.15.0
    • Fix Version/s: 0.15.0
    • Component/s: None
    • Labels:
      None

      Description

      The exception occurs during abandonFileInProgress().

      07/09/21 13:59:28 ERROR fs.FSNamesystem: java.lang.NullPointerException
              at org.apache.hadoop.dfs.FSNamesystem.internalReleaseCreate(FSNamesystem.java:1494)
              at org.apache.hadoop.dfs.FSNamesystem.access$100(FSNamesystem.java:50)
              at org.apache.hadoop.dfs.FSNamesystem$Lease.releaseLocks(FSNamesystem.java:1385)
              at org.apache.hadoop.dfs.FSNamesystem$LeaseMonitor.run(FSNamesystem.java:1447)
              at java.lang.Thread.run(Thread.java:595)
      

      My guess is that the client sends abandonFileInProgress() after create(), which timed out and was not executed by the name-node.
      That is why dir.getFileINode(src) returns null in internalReleaseCreate().

        Attachments

        1. npePendingCreate3.patch
          1.0 kB
          Dhruba Borthakur

          Activity

            People

            • Assignee:
              dhruba Dhruba Borthakur
              Reporter:
              shv Konstantin Shvachko

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment