Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1766

Merging Block and BlockInfo classes on name-node.

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.14.0
    • Fix Version/s: 0.15.0
    • Component/s: None
    • Labels:
      None

      Description

      In current implementation

      • BlocksMap references BlockInfo
      • INode references Block
      • BlockInfo contains a reference to the corresponding Block

      It would be better to incorporate Block into BlockInfo and reference the latter everywhere in name-node structures.
      This saves 24 bytes per block on a 64-bit jvm as stated in HADOOP-1687 (5).
      I retained the Block class as a structure for external (client and data-node) communication.

        Attachments

        1. blockInfo.patch
          2 kB
          Konstantin Shvachko

        Issue Links

          Activity

            People

            • Assignee:
              shv Konstantin Shvachko
              Reporter:
              shv Konstantin Shvachko

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment