Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1385

MD5Hash has a bad hash function

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.12.3
    • 0.13.0
    • io
    • None

    Description

      The MD5Hash class has a really bad hash function, that will cause most most md5s to hash to 0xFFFFFFxx leaving only the low order byte as meaningful. The problem comes from the automatic sign extension when promoting from byte to int.

      Attachments

        1. 1385.patch
          3 kB
          Owen O'Malley

        Activity

          People

            omalley Owen O'Malley
            omalley Owen O'Malley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: