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

Use an array to record the mapping between FSEditLogOpCode and the corresponding byte value

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

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3.0
    • 2.4.0
    • namenode
    • None
    • Reviewed

    Description

      HDFS-5674 uses Enum.values and enum.ordinal to identify an editlog op for a given byte value. While improving the efficiency, it may cause issue. E.g., when several new editlog ops are added to trunk around the same time (for several different new features), it is hard to backport the editlog ops with larger byte values to branch-2 before those with smaller values, since there will be gaps in the byte values of the enum.

      This jira plans to still use an array to record the mapping between editlog ops and their byte values, and allow gap between valid ops.

      Attachments

        1. HDFS-5781.000.patch
          4 kB
          Jing Zhao
        2. HDFS-5781.001.patch
          1 kB
          Jing Zhao
        3. HDFS-5781.002.patch
          2 kB
          Jing Zhao
        4. HDFS-5781.002.patch
          2 kB
          Jing Zhao

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jingzhao Jing Zhao
            jingzhao Jing Zhao
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment