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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • webhdfs
    • None
    • 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. HDFS-8779.01.patch
          0.8 kB
          Walter Su
        2. HDFS-8779.02.patch
          2 kB
          Walter Su
        3. before.png
          17 kB
          Walter Su
        4. after-02-patch.png
          32 kB
          Walter Su
        5. HDFS-8779.03.patch
          3 kB
          Walter Su
        6. patch-to-json-parse.txt
          0.4 kB
          Walter Su
        7. HDFS-8779.04.patch
          25 kB
          Walter Su
        8. HDFS-8779.005.patch
          13 kB
          Haohui Mai
        9. HDFS-8779.006.patch
          13 kB
          Haohui Mai
        10. test-006-patch.PNG
          14 kB
          Walter Su

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: