Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16449

DocCollection object's hashcode/equals method should consider prs state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Duplicate
    • None
    • 9.1
    • SolrCloud
    • None

    Description

      Doccollection's equal/hashcode method should consider prs state.

      // code placeholder
      @Override
      public boolean equals(Object that) {
        if (!(that instanceof DocCollection)) return false;
        DocCollection other = (DocCollection) that;
        return super.equals(that)
            && Objects.equals(this.name, other.name)
            && this.znodeVersion == other.znodeVersion;
      }
      
      @Override
      public int hashCode() {
        return Objects.hash(name, znodeVersion);
      } 

      Attachments

        Issue Links

          Activity

            People

              noble.paul Noble Paul
              hiteshkhamesra Hitesh Khamesra
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: