On 7/20/2015 6:40 AM, Yago Riveiro wrote:
> I’m trying to move from legacy solr.xml to new solr.xml format (version 
> 4.10.4)
> 
> I’m getting this error on startup:
> 
> <solrcloud> section of solr.xml contains 1 unknown config parameter(s): 
> [shareSchema]

There's somewhat confusing information in Jira on this.  One issue seems
to deprecate shareSchema in 4.4.  Deprecation in one major release
implies that the feature will be completely removed in the next major
release, but should still work until then:

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

Another issue talks about fixing str/bool/int detection on parameters
like shareSchema in 4.10 and 5.x (trunk at the time):

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

You said you're still running 4.x, specifically 4.10.4, which means that
I would expect shareSchema to still work.  Although this is technically
a bug, I don't think it's a big enough problem to warrant fixing in the
4.10 branch.

The first thing I would advise trying is to change the parameter from
str to bool.  Hopefully that will fix it.  There may have been a misstep
in the patch for SOLR-5746.

Do you actually NEED this functionality?  It is no longer there in 5.x,
so it may be a good idea to prepare for it's removal now.  The amount of
memory required for an IndexSchema object for each core should not be
prohibitively large, unless you've got thousands of cores ... but in
that case, you're already dealing with fairly significant scaling
challenges, this one may not matter much.

If you do need the functionality, then a jira is in order to work on it.
 I can't guarantee that there will be a 4.10.5 release, even if a fix is
committed to the 4.10 branch.

I have not examined the code to see what's actually happening.  Your
response will determine whether I take a look.

Thanks,
Shawn

Reply via email to