[
https://issues.apache.org/jira/browse/SOLR-16449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17613879#comment-17613879
]
Hitesh Khamesra commented on SOLR-16449:
----------------------------------------
CCing [~noblepaul] [~ichattopadhyaya]
> 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
> Priority: Blocker
>
> 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]