Hi Deniz,

Seems like the update that's being forwarded from a non-leader (original
node that received the request) is failing. This could be due to multiple
reasons, including issue with your schema vs document that you sent.

To elaborate more, here's how a typical batched request in SolrCloud works.

1. Batch sent from client.
2. Received by node X.
3. All documents that have their shard leader on node X, are processed and
distributed to the replicas by node X. All other documents which belong to
a shard who's leader isn't on Node X, get forwarded using the
ConcurrentUpdateSolrClient to their respective leaders.

There's nothing *strange* about this log, other than the fact that the
update failed (and would have failed even if you would have directly sent
the document to this node). Hope this made things clear.

On Mon, Aug 10, 2015 at 10:45 PM, deniz <denizdurmu...@gmail.com> wrote:

> I have a simple 2-node(5.1) cloud env with 6 different cores. One of the
> cores(CoreB) has some update issue which I am aware of, but the error logs
> on solr, I am seeing these below:
>
> ERROR - 2015-08-11 05:04:34.592; [*CoreA shard1 core_node2 CoreA*]
> org.apache.solr.update.StreamingSolrClients$1; error
> org.apache.solr.common.SolrException: Bad Request
> request:
> *
> http://server:8983/solr/CoreB*/update?update.distrib=TOLEADER&distrib.from=http%3A%2F%2Fserver2%3A8983%2Fsolr%2FCoreB%2F&wt=javabin&version=2
>         at
>
> org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient$Runner.run(ConcurrentUpdateSolrClient.java:241)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
>
> ERROR - 2015-08-11 05:09:30.260; [CoreA shard1 core_node2 CoreA]
> org.apache.solr.update.StreamingSolrClients$1; error
> org.apache.solr.common.SolrException: Bad Request
> request:
>
> http://server:8983/solr/CoreB/update?update.distrib=TOLEADER&distrib.from=http%3A%2F%2Fserver2%3A8983%2Fsolr%2FCoreB%2F&wt=javabin&version=2
>         at
>
> org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient$Runner.run(ConcurrentUpdateSolrClient.java:241)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
>
> ERROR - 2015-08-11 05:20:49.710; [gaysuser shard1 core_node2 gaysuser]
> org.apache.solr.update.StreamingSolrClients$1; error
> org.apache.solr.common.SolrException: Bad Request
> request:
>
> http://server:8983/solr/CoreB/update?update.distrib=TOLEADER&distrib.from=http%3A%2F%2Fserver2%3A8983%2Fsolr%2FCoreB%2F&wt=javabin&version=2
>         at
>
> org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient$Runner.run(ConcurrentUpdateSolrClient.java:241)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
>
> ERROR - 2015-08-11 05:23:29.868; [CoreA shard1 core_node2 CoreA]
> org.apache.solr.update.StreamingSolrClients$1; error
> org.apache.solr.common.SolrException: Bad Request
> request:
>
> http://server:8983/solr/CoreB/update?update.distrib=TOLEADER&distrib.from=http%3A%2F%2Fserver2%3A8983%2Fsolr%2FCoreB%2F&wt=javabin&version=2
>         at
>
> org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrClient$Runner.run(ConcurrentUpdateSolrClient.java:241)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
>
> is this normal and just an issue with the wrong logging params or there is
> something wrong with the configs of the cloud
>
>
>
> -----
> Zeki ama calismiyor... Calissa yapar...
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/Core-mismatch-in-org-apache-solr-update-StreamingSolrClients-Errors-for-ConcurrentUpdateSolrClient-tp4222335.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Anshum Gupta

Reply via email to