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: [email protected]
For additional commands, e-mail: [email protected]