Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-12413

Mismatch in the equals and hashcode methods of KeyValue

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.98.13, 1.0.2, 1.2.0, 1.1.1, 2.0.0
    • None
    • None
    • Reviewed

    Description

      In the equals method of KeyValue only row key is compared, and in the hashcode method all bacing bytes are calculated. This breaks the Java rule.

      Attachments

        1. HBASE-12413.diff
          0.9 kB
          Jingcheng Du
        2. HBASE-12413-V2.diff
          2 kB
          Jingcheng Du
        3. HBASE-12413.v3.patch
          3 kB
          Gabriel Reid
        4. HBASE-12413.v4.patch
          4 kB
          Gabriel Reid
        5. HBASE-12413.v4.patch
          4 kB
          Ted Yu
        6. HBASE-12413-0.98.patch
          5 kB
          Andrew Kyle Purtell

        Activity

          People

            jingcheng.du@intel.com Jingcheng Du
            jingcheng.du@intel.com Jingcheng Du
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: