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

addBlock() should persist file blocks once

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.3-alpha
    • 2.0.3-alpha
    • namenode
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: