On Friday, January 10, 2014 11:06:33 AM UTC-6, Ananthakrishnan 
Venkatasubramanian wrote:

> We are in the process of implementing full-text search in our application 
> developed using Java. While writing a document to an index, we are facing 
> the failure sometimes sporadically and not always. Here's the following 
> exception stacktrace for the same.
>
> *com.google.appengine.api.search.PutException: Failed to complete request 
> in 5622ms*
>
> Please provide us a direction as to how to solve this problem. 
>



Transient errors happen sometimes, it's just a fact of life with the Search 
API. How many put operations are failing with this exception?

What I would recommend is catching the exception and checking whether it is 
a transient issue. You can do this by comparing *StatusCode.TRANSIENT_ERROR*
 and *[the caught exception].getOperationResult().getCode()* and checking 
if they are equal. If so, just retry the put operation. 


-----------------
-Vinny P
Technology & Media Advisor
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com  

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to