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

INodeId's LAST_RESERVED_ID may not as expected and the comment is misleading

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Duplicate
    • 3.1.0, 2.7.7
    • None
    • namenode
    • None

    Description

      The comment of class INodeId is misleading. In the comment, Id 1 to 1000 are reserved for potential future usage, but code{{public static final long LAST_RESERVED_ID = 2 << 14 - 1}} will result 1 to 16384 are reserved. At the same time , operator '-' priority is higher than '<<', 2 << 14 - 1 is not equal to (2 <<14) - 1.

      Attachments

        Issue Links

          Activity

            People

              Wang XL Wang XL
              Wang XL Wang XL
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: