Hi,
I have a maintenance use case where there are 2 collections defined, and I
need to do an remove core on one of the collections, and then be able to add
core that collection back in.

I can successfully remove the core with the 2ndary collection, but after I
add that core/collection back in
the cloud page shows 2 shards for that collection and when it is queried,
the Exception comes back
no servers hosting shards.

Below is the steps I did to create this issue on Jetty solr 4.8.1.

Is an add core with Multiple collections supported?

The Userinterface  on the admin page of the server indicates that it is.

Thanks,
Chris
-----------STEPS to replicate this----------

1. Copy Example folder to example folder 2

C:\solr-4.8.1\solr-4.8.1\example>java
-Dbootstrap_confdir=./solr/collection1/conf -Dcollection.configName=myconf
-DzkRun -DnumShards=2 -jar start.jar

solr-4.8.1\example2>java -Djetty.port=7574 -DzkHost=localhost:9983 -jar
start.jar

2. Add colllection via collection api.
http://localhost:8983/solr/admin/collections?action=CREATE&name=realtimecollection&collection.configName=realtimecollection&numShards=1&createNodeSet=10.29.12.109:8983_solr

3.load cloud page
realtimecollection_shard1_replica1:
org.apache.solr.common.cloud.ZooKeeperException:org.apache.solr.common.cloud.ZooKeeperException:
Specified config does not exist in ZooKeeper:realtimecollection

Please check your logs for more information

I think this is because realtimecollection hasn't been upconfiged yet, after
a server restart
this goes away. 

4.restart jetty

5. goto core admin page,click realtime collection, verify realtime
collection is present, and click unload
and verify collection is unloaded on cloud page

6. Goto core admin add core to try and add it back in with the following
settings.
name: realtimecollection_shard1_replica1
instanceDir:
C:\solr-4.8.1\solr-4.8.1\example\solr\realtimecollection_shard1_replica1\
dataDir:
C:\solr-4.8.1\solr-4.8.1\example\solr\realtimecollection_shard1_replica1\data\
config: solrconfig.xml
schema: schema.xml
collection: realtimecollection
shard:shard1

Returns success.

7. query realtime collection and get back no servers hosting shard.
When viewing on the cloud page is shows 2 shards now for realtime collection
and active status, but can't query against it





--
View this message in context: 
http://lucene.472066.n3.nabble.com/MultiCollection-AddCore-fails-tp4144795.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to