Right, the error returned to the client often isn't a complete list. Take a look at your Solr logs as you try to index this, that may give you a better idea of what happens.
Best, Erick On Wed, Jan 15, 2014 at 1:05 PM, aabreur <alexandre.ab...@vtex.com.br> wrote: > I have a collection that has only one shard. There are two nodes of this > shard, a leader and a replica. > > When trying to index a doc to the leader, everything goes OK: > POST > xx.x.xx.x/solr/ds_target/update?commit=true > { > "add": { > "doc": { > "key1": "value1", > "key2": "value2" > } > } > } > > and get the response: > > <?xml version="1.0" encoding="UTF-8"?> > <response> > <lst name="responseHeader"><int name="status">0</int><int > name="QTime">93</int></lst> > </response> > > Then i try the same on th replica: > POST > yy.y.y.y/solr/ds_target/update?commit=true > { > "add": { > "doc": { > "key1": "value1", > "key2": "value2" > } > } > } > > > response: > > { > "responseHeader": { > "status": 500, > "QTime": 7754 > }, > "error": { > "msg": "Server at http://172.0.17.180:80/solr/ds_target returned non > ok status:500, message:Server Error", > "trace": > "org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: > Server at http://172.0.17.180:80/solr/ds_target returned non ok status:500, > message:Server Error\n\tat > org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:372)\n\tat > org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180)\n\tat > org.apache.solr.update.SolrCmdDistributor$1.call(SolrCmdDistributor.java:332)\n\tat > org.apache.solr.update.SolrCmdDistributor$1.call(SolrCmdDistributor.java:306)\n\tat > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)\n\tat > java.util.concurrent.FutureTask.run(FutureTask.java:166)\n\tat > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)\n\tat > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)\n\tat > java.util.concurrent.FutureTask.run(FutureTask.java:166)\n\tat > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n\tat > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n\tat > java.lang.Thread.run(Thread.java:724)\n", > "code": 500 > } > } > > ... > 172.0.17.180 is the leader internal ip > > > Any help? > thanks in advance > > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Error-while-trying-to-index-doc-on-replica-tp4111504.html > Sent from the Solr - User mailing list archive at Nabble.com.