You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jason Gerlowski (JIRA)" <ji...@apache.org> on 2017/05/30 02:01:04 UTC

[jira] [Commented] (SOLR-9321) Removed usage of deprecated clusterstate.getSlicesMap(), getSlices() and getActiveSlices()

    [ https://issues.apache.org/jira/browse/SOLR-9321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16028704#comment-16028704 ] 

Jason Gerlowski commented on SOLR-9321:
---------------------------------------

The attached patch replaces calls to each ClusterState method with {{clusterState.getCollection.SomeSliceRelatedMethod}}.  It doesn't change the error-case handling around each of this uses though.  The direct ClusterState methods will return {{null}} when the collection information cannot be found; the non-deprecated replacement calls throw a SolrException instead.  Ends up causing a lot of test failures with the patch as is.

In the process of changing out the error handling for some of these calls.  Will update the patch when I can get tests passing locally.

> Removed usage of deprecated clusterstate.getSlicesMap(), getSlices() and getActiveSlices()
> ------------------------------------------------------------------------------------------
>
>                 Key: SOLR-9321
>                 URL: https://issues.apache.org/jira/browse/SOLR-9321
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Ishan Chattopadhyaya
>            Priority: Minor
>         Attachments: SOLR-9321.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org