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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.21.0
    • 0.21.1
    • None
    • None
    • 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.patch
          12 kB
          Konstantin Shvachko
        2. appendFileSync.patch
          11 kB
          Konstantin Shvachko
        3. appendFileSync-0.21.patch
          8 kB
          Konstantin Shvachko

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: