You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Scott Blum (JIRA)" <ji...@apache.org> on 2016/05/06 16:35:12 UTC
[jira] [Commented] (SOLR-8747) ExclusiveMarking enum and
checkExclusiveMarking method is very confusing
[ https://issues.apache.org/jira/browse/SOLR-8747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15274315#comment-15274315 ]
Scott Blum commented on SOLR-8747:
----------------------------------
CC: [~noble.paul] related to SOLR-8744
> ExclusiveMarking enum and checkExclusiveMarking method is very confusing
> ------------------------------------------------------------------------
>
> Key: SOLR-8747
> URL: https://issues.apache.org/jira/browse/SOLR-8747
> Project: Solr
> Issue Type: Improvement
> Components: SolrCloud
> Reporter: Shalin Shekhar Mangar
> Priority: Minor
> Fix For: 6.0, master
>
>
> ExclusiveMarking enum and checkExclusiveMarking method is very confusing. It appears to do the opposite of its name e.g.
> {code}
> @Override
> public ExclusiveMarking checkExclusiveMarking(String collectionName, ZkNodeProps message) {
> // CLUSTERSTATUS is always mutually exclusive
> //TODO deprecated remove this check .
> if(CLUSTERSTATUS.isEqual(message.getStr(Overseer.QUEUE_OPERATION)))
> return ExclusiveMarking.EXCLUSIVE;
> synchronized (collectionWip) {
> if(collectionWip.contains(collectionName))
> return ExclusiveMarking.NONEXCLUSIVE;
> }
> return ExclusiveMarking.NOTDETERMINED;
> }
> {code}
> I guess it returns exclusive if the current task is the only one to run. We should document it or rename it to make its function more comprehensible.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org