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

tay commented on SOLR-4570:
---------------------------

solr 6.0 version,explicit shard id in core.properties. but where restart,solr 
use the shard id from clusterstate .not come from croe.preperties.
find ZkController#preRegister.   allways  invoke   
doGetShardIdAndNodeNameProcess  method : 

     if (cd.getCloudDescriptor().getShardId() == null && 
needsToBeAssignedShardId(cd, zkStateReader.getClusterState(), coreNodeName)) {
      doGetShardIdAndNodeNameProcess(cd);
    } else {
      // still wait till we see us in local state
      doGetShardIdAndNodeNameProcess(cd);
    }

so  explicit shard id  is not used 

> Even if an explicit shard id is used, ZkController#preRegister should still 
> wait to see the shard id in it's current ClusterState.
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-4570
>                 URL: https://issues.apache.org/jira/browse/SOLR-4570
>             Project: Solr
>          Issue Type: Bug
>          Components: SolrCloud
>            Reporter: Mark Miller
>            Assignee: Mark Miller
>            Priority: Minor
>             Fix For: 4.2.1, 4.3, 6.0
>
>




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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to