lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "Per Steffensen/Update semantics" by Per Steffensen
Date Fri, 20 Apr 2012 12:07:15 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "Per Steffensen/Update semantics" page has been changed by Per Steffensen:
http://wiki.apache.org/solr/Per%20Steffensen/Update%20semantics?action=diff&rev1=21&rev2=22

Comment:
Changed strategy for encoding main error-type in response from encoded in reason-phrase to
in header. Based on comment on SOLR-3382 

  
  ==== Checking responses for partial errors ====
  
- ===== Status line =====
+ ===== Status line and response header =====
  
  ====== General ======
  
@@ -162, +162 @@

  If errors occur the HTTP response status line will in general look like this
  
  {{{
- HTTP/1.1 4XX <error-message>, error-type=<error-namespace>.<error-name>
+ HTTP/1.1 <error-code> <error-message>
+ }}}
+ 
+ and a response header like this will be included
+ 
+ {{{
+ X-solr-error-type: <error-type>
  }}}
  
  ====== Single document updates ======
  
- If you only sent one document for update the error which occured handling that single document
will be encoded in the HTTP response status line. Example
+ If you only sent one document for update the error which occured handling that single document
will be encoded in the HTTP response status line (code and message) and the "X-solr-error-type"
header. Example
  
  {{{
- HTTP/1.1 409 Attempt to update (_version_ > 0 specified explicitly in document) document
failed. Document does not exist, error-type=org.apache.solr.common.partialerrors.update.DocumentDoesNotExist
+ HTTP/1.1 409 Attempt to update (_version_ > 0 specified explicitly in document) document
failed. Document does not exist
+ ...
+ X-solr-error-type: org.apache.solr.common.partialerrors.update.DocumentDoesNotExist
  }}}
  
  ====== Multi document updates ======
  
- If you sent multiple documents for update and the handling of some (might be all) of them
resulted in errors the HTTP response status line will look like this
+ If you sent multiple documents for update and the handling of some (might be all) of them
resulted in errors the HTTP response status line and "X-solr-error-type" header will look
like this
  
  {{{
- HTTP/1.1 412 Some parts of the request resulted in errors. Need to check response for partial
errors. Documents sent for update with no corresponding partial error succeeded., error-type=org.apache.solr.common.partialerrors.PartialErrors
+ HTTP/1.1 412 Some parts of the request resulted in errors. Need to check response for partial
errors. Documents sent for update with no corresponding partial error succeeded.
+ ...
+ X-solr-error-type: org.apache.solr.common.partialerrors.PartialErrors
  }}}
  
  ======= Body =======

Mime
View raw message