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

addBlock() should persist file blocks once

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.3-alpha
    • Fix Version/s: 2.0.3-alpha
    • Component/s: namenode
    • Labels:
      None

      Description

      FSNamesystem.getAdditionalBlock() persists all file blocks twice, first in dir.removeBlock() using OP_ADD, then immediately after that in dir.persistBlocks() using OP_UPDATE_BLOCKS.
      This should be aggregated in one call to logEdit().

        Attachments

        1. HDFS-4308.2.patch
          1 kB
          Plamen Jeliazkov
        2. HDFS-4308.patch
          0.7 kB
          Plamen Jeliazkov

          Activity

            People

            • Assignee:
              zero45 Plamen Jeliazkov
              Reporter:
              shv Konstantin Shvachko
            • Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: