https://issues.apache.org/jira/browse/SOLR-7982

We have a 3 Zookeeper 5 solr server Solrcloud. 
We created collection1 and collection2 with 80 shards respectively in the
cloud, replicateFactor is 2. 
But after created, we found in a same collection, the coreNodeName has some
duplicate in core.properties in the core folder. For example:
[tanglin@solr64 home]$ ll collection1_shard13_replica2/core.properties
rw-rr- 1 solr solr 173 Jul 29 11:52
collection1_shard13_replica2/core.properties
[tanglin@solr64 home]$ ll collection1_shard66_replica1/core.properties
rw-rr- 1 solr solr 173 Jul 29 11:52
collection1_shard66_replica1/core.properties
[tanglin@solr64 home]$ cat collection1_shard66_replica1/core.properties
#Written by CorePropertiesLocator
#Wed Jul 29 11:52:54 UTC 2015
numShards=80
name=collection1_shard66_replica1
shard=shard66
collection=collection1
coreNodeName=core_node19
[tanglin@solr64 home]$ cat collection1_shard13_replica2/core.properties
#Written by CorePropertiesLocator
#Wed Jul 29 11:52:53 UTC 2015
numShards=80
name=collection1_shard13_replica2
shard=shard13
collection=collection1
coreNodeName=core_node19
[tanglin@solr64 home]$
The consequence of the issue is that the clusterstate.json in zookeeper is
also with wrong core_node#, and updating state of a core sometimes changed
the state of other core in other shard..
Snippet from clusterstate:
"shard13":{
"range":"a6660000-a998ffff",
"state":"active",
"replicas":{
"core_node33":
{ "state":"active", "base_url":"https://solr65.somesite.com:8443/solr";,
"core":"collection1_shard13_replica1",
"node_name":"solr65.somesite.com:8443_solr"}
,
"core_node19":
{ "state":"active", "base_url":"https://solr64.somesite.com:8443/solr";,
"core":"collection1_shard13_replica2",
"node_name":"solr64.somesite.com:8443_solr", "leader":"true"}
}},
...
"shard66":{
"range":"50000000-5332ffff",
"state":"active",
"replicas":{
"core_node105":
{ "state":"active", "base_url":"https://solr63.somesite.com:8443/solr";,
"core":"collection1_shard66_replica2",
"node_name":"solr63.somesite.com:8443_solr", "leader":"true"}
,
"core_node19":
{ "state":"active", "base_url":"https://solr64.somesite.com:8443/solr";,
"core":"collection1_shard66_replica1",
"node_name":"solr64.somesite.com:8443_solr"}
}},



--
View this message in context: 
http://lucene.472066.n3.nabble.com/SolrCloud-collection-creation-There-are-duplicate-coreNodeName-in-core-properties-in-a-same-collecti-tp4225532.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to