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

WebUI fails to display block IDs that are larger than 2^53 - 1

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: webhdfs
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Old release use randomly generated block ID(HDFS-4645).
      max value of Long in Java is 2^63-1
      max value of number(integer) in Javascript is 2^53-1. ( See Link)

      Which means almost every randomly generated block ID exceeds MAX_SAFE_INTEGER.

      A integer which exceeds MAX_SAFE_INTEGER cannot be represented in Javascript.

        Attachments

        1. after-02-patch.png
          32 kB
          Walter Su
        2. before.png
          17 kB
          Walter Su
        3. HDFS-8779.005.patch
          13 kB
          Haohui Mai
        4. HDFS-8779.006.patch
          13 kB
          Haohui Mai
        5. HDFS-8779.01.patch
          0.8 kB
          Walter Su
        6. HDFS-8779.02.patch
          2 kB
          Walter Su
        7. HDFS-8779.03.patch
          3 kB
          Walter Su
        8. HDFS-8779.04.patch
          25 kB
          Walter Su
        9. patch-to-json-parse.txt
          0.4 kB
          Walter Su
        10. test-006-patch.PNG
          14 kB
          Walter Su

          Issue Links

            Activity

              People

              • Assignee:
                wheat9 Haohui Mai
                Reporter:
                walter.k.su Walter Su
              • Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: