Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5284 Flatten INode hierarchy
  3. HDFS-5285

Flatten INodeFile hierarchy: Add UnderContruction Feature

    XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.0
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      For files, there are INodeFile, INodeFileUnderConstruction, INodeFileWithSnapshot and INodeFileUnderConstructionWithSnapshot for representing whether a file is under construction or whether it is in some snapshot. The following are two major problems of the current approach:

      • Java class does not support multiple inheritances so that INodeFileUnderConstructionWithSnapshot cannot extend both INodeFileUnderConstruction and INodeFileWithSnapshot.
      • The number of classes is exponential to the number of features. Currently, there are only two features, UnderConstruction and WithSnapshot. The number of classes is 2^2 = 4. It is hard to add one more feature since the number of classes will become 2^3 = 8.

      As a first step, we implement an Under-Construction feature to replace INodeFileUnderConstruction and INodeFileUnderConstructionWithSnapshot in this jira.

        Attachments

        1. HDFS-5285.b2.patch
          105 kB
          Jing Zhao
        2. HDFS-5285.003.patch
          104 kB
          Jing Zhao
        3. HDFS-5285.002.patch
          104 kB
          Jing Zhao
        4. HDFS-5285.001.patch
          92 kB
          Jing Zhao
        5. h5285_20131118.patch
          67 kB
          Tsz Wo Nicholas Sze
        6. h5285_20131002.patch
          68 kB
          Tsz Wo Nicholas Sze
        7. h5285_20131001.patch
          59 kB
          Tsz Wo Nicholas Sze

          Issue Links

            Activity

              People

              • Assignee:
                jingzhao Jing Zhao
                Reporter:
                szetszwo Tsz Wo Nicholas Sze
              • Votes:
                0 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: