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.

    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. HDFS-565.aj.patch
          0.7 kB
          Konstantin I Boudnik
        2. CommitBlock.patch
          23 kB
          Konstantin Shvachko
        3. CommitBlock.patch
          23 kB
          Konstantin Shvachko

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: