Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-1363

startFileInternal should return the last block of the file opened for append as an under-construction block

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.21.0
    • Fix Version/s: 0.21.1
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      FSNamesystem.startFileInternal should convert the last block of the file opened for append to an under-construction block and return it. This will let remove the second synchronized section in FSNamesystem.appendFile() and avoid redundant computations and potential inconsistencies as stated in HDFS-1152.

        Attachments

        1. appendFileSync-0.21.patch
          8 kB
          Konstantin Shvachko
        2. appendFileSync.patch
          11 kB
          Konstantin Shvachko
        3. appendFileSync.patch
          12 kB
          Konstantin Shvachko

          Issue Links

            Activity

              People

              • Assignee:
                shv Konstantin Shvachko
                Reporter:
                shv Konstantin Shvachko
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: