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

hashCode for Mutation has an unfortunate implementation

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.4, 1.7.0
    • Fix Version/s: 1.6.5, 1.7.1, 1.8.0
    • Component/s: client
    • Labels:
      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

            • Assignee:
              ecn Eric C. Newton
              Reporter:
              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