[
https://issues.apache.org/jira/browse/SOLR-5296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13791248#comment-13791248
]
ASF subversion and git services commented on SOLR-5296:
-------------------------------------------------------
Commit 1530861 from [email protected] in branch 'dev/branches/lucene_solr_4_5'
[ https://svn.apache.org/r1530861 ]
SOLR-4590, SOLR-5295, SOLR-5296, SOLR-5263, SOLR-5297, SOLR-5301, SOLR-5255,
SOLR-5305, SOLR-5314: Merging r1526616, r1528433, r1528441, r1528461, r1528488,
r1529341, r1529434, r1529503, r1530268 from branch_4x
> Creating a collection with implicit router adds shard ranges to each shard
> --------------------------------------------------------------------------
>
> Key: SOLR-5296
> URL: https://issues.apache.org/jira/browse/SOLR-5296
> Project: Solr
> Issue Type: Bug
> Components: SolrCloud
> Affects Versions: 4.5
> Reporter: Shalin Shekhar Mangar
> Assignee: Shalin Shekhar Mangar
> Fix For: 4.6, 5.0
>
> Attachments: SOLR-5296.patch
>
>
> Creating a collection with implicit router adds shard ranges to each shard.
> Using the Example A from SolrCloud wiki:
> bq.
> http://localhost:8983/solr/admin/collections?action=CREATE&name=myimplicitcollection3&numShards=2&maxShardsPerNode=5&router.name=implicit&shards=s1,s2&replicationFactor=2
> The following clusterstate is created:
> {quote}
> "myimplicitcollection3":{
> "shards":{
> "s1":{
> "range":"80000000-ffffffff",
> "state":"active",
> "replicas":{
> "core_node1":{
> "state":"active",
> "base_url":"http://192.168.1.5:8983/solr",
> "core":"myimplicitcollection3_s1_replica2",
> "node_name":"192.168.1.5:8983_solr"},
> "core_node3":{
> "state":"active",
> "base_url":"http://192.168.1.5:7574/solr",
> "core":"myimplicitcollection3_s1_replica1",
> "node_name":"192.168.1.5:7574_solr",
> "leader":"true"}}},
> "s2":{
> "range":"0-7fffffff",
> "state":"active",
> "replicas":{
> "core_node2":{
> "state":"active",
> "base_url":"http://192.168.1.5:8983/solr",
> "core":"myimplicitcollection3_s2_replica2",
> "node_name":"192.168.1.5:8983_solr"},
> "core_node4":{
> "state":"active",
> "base_url":"http://192.168.1.5:7574/solr",
> "core":"myimplicitcollection3_s2_replica1",
> "node_name":"192.168.1.5:7574_solr",
> "leader":"true"}}}},
> "maxShardsPerNode":"5",
> "router":{"name":"implicit"},
> "replicationFactor":"2"}
> {quote}
> Collections with implicit router should not have shard ranges at all. Note
> that the createshard API does the right thing.
--
This message was sent by Atlassian JIRA
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]