You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Andrzej Bialecki (JIRA)" <ji...@apache.org> on 2017/10/09 18:25:00 UTC
[jira] [Updated] (SOLR-11449) MoveReplicaCmd mistakenly calls
registerCollectionStateWatcher instead of unregisterCollectionStateWatcher
[ https://issues.apache.org/jira/browse/SOLR-11449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrzej Bialecki updated SOLR-11449:
-------------------------------------
Attachment: SOLR-11449.patch
Patch fixing the issue with watch (un)registration. The other issue (HDFS) is not fixed in this patch.
> MoveReplicaCmd mistakenly calls registerCollectionStateWatcher instead of unregisterCollectionStateWatcher
> ----------------------------------------------------------------------------------------------------------
>
> Key: SOLR-11449
> URL: https://issues.apache.org/jira/browse/SOLR-11449
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Affects Versions: 7.0.1, 7.1, master (8.0)
> Reporter: Andrzej Bialecki
> Assignee: Andrzej Bialecki
> Attachments: SOLR-11449.patch
>
>
> Probably got in as a copy & paste error:
> {code}
> --- a/solr/core/src/java/org/apache/solr/cloud/MoveReplicaCmd.java
> +++ b/solr/core/src/java/org/apache/solr/cloud/MoveReplicaCmd.java
> @@ -206,7 +206,7 @@ public class MoveReplicaCmd implements Cmd{
> log.warn(errorString);
> results.add("failure", errorString);
> if (watcher != null) { // unregister
> - ocmh.zkStateReader.registerCollectionStateWatcher(coll.getName(), watcher);
> + ocmh.zkStateReader.removeCollectionStateWatcher(coll.getName(), watcher);
> }
> return;
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org