You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Hitesh Khamesra (Jira)" <ji...@apache.org> on 2022/10/07 05:59:00 UTC

[jira] [Created] (SOLR-16449) DocCollection object's hashcode/equals method should consider prs state

Hitesh Khamesra created SOLR-16449:
--------------------------------------

             Summary: DocCollection object's hashcode/equals method should consider prs state
                 Key: SOLR-16449
                 URL: https://issues.apache.org/jira/browse/SOLR-16449
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: SolrCloud
    Affects Versions: 9.1
            Reporter: Hitesh Khamesra


Doccollection's equal/hashcode method should consider prs state.
{code:java}
// 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);
} {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org