Re: java.lang.Exception: Conflict with StreamingUpdateSolrServer

2014-03-03 Thread Chris Hostetter

: Subject: java.lang.Exception: Conflict with StreamingUpdateSolrServer

the fact that you are using StreamingUpdateSolrServer isn't really a 
factor here -- what matters is the data you are sending to solr in the 
updates...

: location=StreamingUpdateSolrServer line=162 Status for: null is 409
...
: Conflict

A 409 HTTP Status is a Conflict.  

It means that Optimistic concurrency failed.  Your update indicated a 
document version but the version of hte document on the server didn't meet 
the version requirements...

https://cwiki.apache.org/confluence/display/solr/Updating+Parts+of+Documents#UpdatingPartsofDocuments-OptimisticConcurrency



-Hoss
http://www.lucidworks.com/


Re: java.lang.Exception: Conflict with StreamingUpdateSolrServer

2014-03-03 Thread Gopal Patwa
Thanks Chirs,  I found in our application code it was related to optimistic
concurrency failure.


On Mon, Mar 3, 2014 at 6:13 PM, Chris Hostetter hossman_luc...@fucit.orgwrote:


 : Subject: java.lang.Exception: Conflict with StreamingUpdateSolrServer

 the fact that you are using StreamingUpdateSolrServer isn't really a
 factor here -- what matters is the data you are sending to solr in the
 updates...

 : location=StreamingUpdateSolrServer line=162 Status for: null is 409
 ...
 : Conflict

 A 409 HTTP Status is a Conflict.

 It means that Optimistic concurrency failed.  Your update indicated a
 document version but the version of hte document on the server didn't meet
 the version requirements...


 https://cwiki.apache.org/confluence/display/solr/Updating+Parts+of+Documents#UpdatingPartsofDocuments-OptimisticConcurrency



 -Hoss
 http://www.lucidworks.com/



java.lang.Exception: Conflict with StreamingUpdateSolrServer

2014-03-01 Thread Gopal Patwa
We have non SolrCloud cluster with Solr 4.1 version and often we get this
error during indexing, Did anyone else had similar experience with Indexing
or have seen this error.


2014-03-01 16:52:16,857 [1a44#fb2a/ActiveListingPump] priority=INFO
app_name=listing-search-index thread=pool-15-thread-336
location=StreamingUpdateSolrServer line=162 Status for: null is 409

2014-03-01 16:52:16,858 [1a44#fb2a/ActiveListingPump] priority=ERROR
app_name=listing-search-index thread=pool-15-thread-336
location=StreamingUpdateSolrServer line=304 error
java.lang.Exception: Conflict
Conflict
request: http://localhost:8080/solr/activeInventory/update/javabin
at 
org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer$Runner.run(StreamingUpdateSolrServer.java:170)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)

2014-03-01 16:52:16,858 [1a44#fb2a/ActiveListingPump] priority=INFO
app_name=listing-search-index thread=pool-15-thread-336
location=StreamingUpdateSolrServer line=200 finished:
org.apache.solr.client.solrj.impl.StreamingUpdateSolrServer$Runner@331c403a