Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-265 Revisit append
  3. HDFS-565

Introduce block committing logic during new block allocation and file close.

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Append Branch
    • Append Branch
    • hdfs-client, namenode
    • None
    • Reviewed

    Description

      ClientProtocol methods addBlock() and complete() need to include additional parameter - a block, which has been successfully written to data-nodes. By sending this block to the name-node the client confirms the generation stamp of the block and its length. The block on the name-node changes its state to committed and will become complete as long as one of the finalized replicas reported by data-nodes.

      Attachments

        1. CommitBlock.patch
          23 kB
          Konstantin Shvachko
        2. CommitBlock.patch
          23 kB
          Konstantin Shvachko
        3. HDFS-565.aj.patch
          0.7 kB
          Konstantin I Boudnik

        Issue Links

        Activity

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

          People

            shv Konstantin Shvachko
            shv Konstantin Shvachko
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment