[
https://issues.apache.org/jira/browse/SOLR-8747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15317281#comment-15317281
]
Scott Blum commented on SOLR-8747:
----------------------------------
Is this fixed now per Noble's treelocking changes?
> 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
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]