Nicholas Stuart created SOLR-6890:
-------------------------------------

             Summary: SPLITSHARD fails with custom lib in solrconfig.xml
                 Key: SOLR-6890
                 URL: https://issues.apache.org/jira/browse/SOLR-6890
             Project: Solr
          Issue Type: Bug
          Components: SolrCloud
    Affects Versions: 4.10.2
         Environment: linux, java 8
            Reporter: Nicholas Stuart


We have a cluster setup, and added a entry into the solrconfig to point to a 
directory that holds some customer plugins, everything works fine with the 
initial setup and replication servers.

If we try to split shards through the collection api with the following:
http://10.0.6.228:8983/solr/admin/collections?action=SPLITSHARD&collection=products&shard=shard2

The API reports an error:
..
<lst name="failure">
<str>
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error 
CREATEing SolrCore 'products_shard2_0_replica1': Unable to create core 
[products_shard2_0_replica1] Caused by: com.test.MyParser
</str>
</lst>
<str name="Operation splitshard caused exception:">
org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: 
ADDREPLICA failed to create replica
</str>
<lst name="exception">
<str name="msg">ADDREPLICA failed to create replica</str>
<int name="rspCode">500</int>
</lst>
..

Looking in the server logs the ultimate exception is:

Caused by: org.apache.solr.common.SolrException: Error loading class 
'com.test.MyParser'
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:873)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:646)
        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:491)
        ... 33 more
Caused by: org.apache.solr.common.SolrException: Error loading class 
'com.test.MyParser'
        at 
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:490)
        at 
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:421)
        at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:543)
        at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:599)
        at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2243)
        at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2237)
        at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:2270)
        at 
org.apache.solr.core.SolrCore.initValueSourceParsers(SolrCore.java:2182)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:781)
        ... 35 more
Caused by: java.lang.ClassNotFoundException: com.test.MyParser
        at java.net.URLClassLoader$1.run(URLClassLoader.java:372)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:360)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:798)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:344)
        at 
org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:474)

The configs are stored in an external zookeeper instance if that matters at 
all. Let me know if anything else is needed for debugging purposes.




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to