HBase
  1. HBase
  2. HBASE-3908

TableSplit not implementing "hashCode" problem

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.90.1
    • Fix Version/s: 0.90.4
    • Component/s: mapreduce
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Tags:
      mapreduce

      Description

      reported by Lucian Iordache on hbase-user mail list. will attach the patch asap
      -------------------------------------------

      Hi guys,

      I've just found a problem with the class TableSplit. It implements "equals",
      but it does not implement hashCode also, as it should have.
      I've discovered it by trying to use a HashSet of TableSplit's, and I've
      noticed that some duplicate splits are added to the set.

      The only option I have for now is to extend TableSplit and to use the
      subclass.
      I use cloudera hbase cdh3u0 version.

      Do you know about this problem? Should I open a Jira issue for that, or it
      already exists?

      Thanks,
      Lucian

        Activity

        Daniel Iancu created issue -
        Daniel Iancu made changes -
        Field Original Value New Value
        Status Open [ 1 ] Patch Available [ 10002 ]
        Fix Version/s 0.90.4 [ 12316406 ]
        Tags mapreduce
        Daniel Iancu made changes -
        Attachment HBASE-3908-TableSplit-hashCode.patch [ 12480099 ]
        Hide
        stack added a comment -

        Committed to trunk and branch. Thanks for the patch Daniel

        Show
        stack added a comment - Committed to trunk and branch. Thanks for the patch Daniel
        stack made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Resolution Fixed [ 1 ]
        Hide
        Hudson added a comment -

        Integrated in HBase-TRUNK #1933 (See https://builds.apache.org/hudson/job/HBase-TRUNK/1933/)

        Show
        Hudson added a comment - Integrated in HBase-TRUNK #1933 (See https://builds.apache.org/hudson/job/HBase-TRUNK/1933/ )
        stack made changes -
        Component/s mapred [ 12312137 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Patch Available Patch Available
        2d 18h 22m 1 Daniel Iancu 23/May/11 11:13
        Patch Available Patch Available Resolved Resolved
        7h 1 stack 23/May/11 18:14

          People

          • Assignee:
            Unassigned
            Reporter:
            Daniel Iancu
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development