Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-2802 Support for RW/RO snapshots in HDFS
  3. HDFS-4627

Fix FSImageFormat#Loader NPE and synchronization issues

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersConvert to IssueMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Snapshot (HDFS-2802)
    • namenode
    • None
    • Reviewed

    Description

      1. Currently FSImageFormat#Loader#loadFilesUnderConstruction calls FSDirectory#unprotectedReplaceINodeFile without acquiring FSDirectory's lock. FSDirectory#replaceINodeFile should be called instead.
      2. Currently FSImage#Loader#loadINode does not create block[] object (i.e., keep it as null) when the length of the block is 0. This will cause NPE when the loaded INodeFile is empty, and then an append operation on this inode is applied from edit log.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jingzhao Jing Zhao Assign to me
            jingzhao Jing Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment