Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-4029

hashCode for Mutation has an unfortunate implementation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.4, 1.7.0
    • 1.6.5, 1.7.1, 1.8.0
    • client
    • None

    Description

      While looking at how a tablet server processes constraint violations, I happened to look into Mutation's hashCode implementation:

        @Override
        public int hashCode() {
          return toThrift(false).hashCode();
        }
      

      Clicking through to TMutation hashCode finds this gem:

        @Override
        public int hashCode() {
          return 0;
        }
      

      Attachments

        Activity

          People

            ecn Eric C. Newton
            ecn Eric C. Newton
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h