You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Ishan Chattopadhyaya (Jira)" <ji...@apache.org> on 2022/10/10 05:22:00 UTC
[jira] [Updated] (SOLR-16449) DocCollection object's hashcode/equals method should consider prs state
[ https://issues.apache.org/jira/browse/SOLR-16449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ishan Chattopadhyaya updated SOLR-16449:
----------------------------------------
Affects Version/s: (was: 9.1)
> 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
> 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: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org