Re: Auto naming replicas via ADDREPLICA

2015-03-24 Thread Anshum Gupta
Either of them works for me. If you want to get your hands dirty, please go ahead. I can review/provide feedback if you need anything there. I'll just create a JIRA to begin with. On Tue, Mar 24, 2015 at 9:15 AM, Shai Erera wrote: > I use vanilla 5.0. I intended to fix it myself, but if you want

Re: Auto naming replicas via ADDREPLICA

2015-03-24 Thread Shai Erera
I use vanilla 5.0. I intended to fix it myself, but if you want to go ahead, I'd be happy to review the patch. Shai On Tue, Mar 24, 2015 at 6:11 PM, Anshum Gupta wrote: > It's certainly looks like a bug and the name shouldn't be added to the > request automatically. > Can you confirm what versi

Re: Auto naming replicas via ADDREPLICA

2015-03-24 Thread Anshum Gupta
It's certainly looks like a bug and the name shouldn't be added to the request automatically. Can you confirm what version of Solr are you using? If it turns out to be a bug in 5x/trunk I'll create a JIRA and fix it to both #1 and #2. On Mon, Mar 23, 2015 at 9:48 AM, Shai Erera wrote: > Shawn,

Re: Auto naming replicas via ADDREPLICA

2015-03-24 Thread Shawn Heisey
On 3/23/2015 10:48 AM, Shai Erera wrote: > The 'name' param isn't set when I send the URL request (and it's also not > specified in the reference guide), but only when I add the replica using > SolrJ. I then tweaked my code to do the following: > > final CollectionAdminRequest.AddReplica addRepl

Re: Auto naming replicas via ADDREPLICA

2015-03-23 Thread Shai Erera
Shawn, that was a great tip! When I tried the URL, the core was named as expected (mycollection_shard1_replica2). I then compared the URLs as reported in the logs, and I believe I found the bug: SolrJ: [admin] webapp=null path=/admin/collections params={shard=shard1& *name=mycollection*&action=AD

Re: Auto naming replicas via ADDREPLICA

2015-03-23 Thread Shawn Heisey
On 3/23/2015 9:27 AM, Shai Erera wrote: > I have a Solr cluster started (all programmatically) with one Solr node, > one collection and one shard. I set the replicationFactor to 1. The name of > the result core was set to mycollection_shard1_replica1. > > I then start a second Solr node and issue a

Auto naming replicas via ADDREPLICA

2015-03-23 Thread Shai Erera
Hi I have a Solr cluster started (all programmatically) with one Solr node, one collection and one shard. I set the replicationFactor to 1. The name of the result core was set to mycollection_shard1_replica1. I then start a second Solr node and issue an ADDREPLICA command as described in the refe