Hey Sourav,

This was likely caused by too many uncaught errors causing requests to 
fail. You should wrap the code performing memcache.put() calls in a 
try-catch block so you can retry the memcache.put() using an exponential 
back-off <https://en.wikipedia.org/wiki/Exponential_backoff>scheme.

Let me know if you have any comments or questions and I'll be happy to 
assist!

Cheers,

Nick
Cloud Platform Community Support 

On Sunday, September 25, 2016 at 9:03:50 AM UTC-4, Sourav Chandra wrote:
>
> *Full Stacktrace:*
>
> Caused by: com.google.appengine.api.memcache.MemcacheServiceException: 
> Memcache put: Error setting single item (...) at 
> com.google.appengine.api.memcache.AsyncMemcacheServiceImpl$7.transform(AsyncMemcacheServiceImpl.java:557)
>  
> at 
> com.google.appengine.api.memcache.AsyncMemcacheServiceImpl$7.transform(AsyncMemcacheServiceImpl.java:544)
>  
> at 
> com.google.appengine.api.memcache.MemcacheServiceApiHelper$RpcResponseHandler.convertResponse(MemcacheServiceApiHelper.java:58)
>  
> at 
> com.google.appengine.api.memcache.MemcacheServiceApiHelper$1.wrap(MemcacheServiceApiHelper.java:103)
>  
> at 
> com.google.appengine.api.memcache.MemcacheServiceApiHelper$1.wrap(MemcacheServiceApiHelper.java:98)
>  
> at 
> com.google.appengine.api.utils.FutureWrapper.wrapAndCache(FutureWrapper.java:56)
>  
> at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:93) 
> at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java:89) 
> at 
> com.google.appengine.api.memcache.MemcacheServiceImpl.quietGet(MemcacheServiceImpl.java:26)
>  
> at 
> com.google.appengine.api.memcache.MemcacheServiceImpl.put(MemcacheServiceImpl.java:74)
>  
> at com.livestream.donations.utils.MemCacheUtils.put(MemCacheUtils.java:72 
> <https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=2-0-6&file=com%2Flivestream%2Fdonations%2Futils%2FMemCacheUtils.java&line=72&logInsertId=2016-09-24%7C21%3A43%3A48.294075-07%7C10.106.10.86%7C1459635630&logNanos=1474778622511396000&nestedLogIndex=7&project=livestream-donations>)
>  
> at com.livestream.donations.utils.LsApiUtils.getStripeDetailsFor(
> LsApiUtils.java:39 
> <https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=2-0-6&file=com%2Flivestream%2Fdonations%2Futils%2FLsApiUtils.java&line=39&logInsertId=2016-09-24%7C21%3A43%3A48.294075-07%7C10.106.10.86%7C1459635630&logNanos=1474778622511396000&nestedLogIndex=7&project=livestream-donations>)
>  
> at com.livestream.donations.utils.LsApiUtils.getStripeIdFor(
> LsApiUtils.java:53 
> <https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=2-0-6&file=com%2Flivestream%2Fdonations%2Futils%2FLsApiUtils.java&line=53&logInsertId=2016-09-24%7C21%3A43%3A48.294075-07%7C10.106.10.86%7C1459635630&logNanos=1474778622511396000&nestedLogIndex=7&project=livestream-donations>)
>  
> at com.livestream.donations.utils.LsApiUtils$2.call(LsApiUtils.java:66 
> <https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=2-0-6&file=com%2Flivestream%2Fdonations%2Futils%2FLsApiUtils.java&line=66&logInsertId=2016-09-24%7C21%3A43%3A48.294075-07%7C10.106.10.86%7C1459635630&logNanos=1474778622511396000&nestedLogIndex=7&project=livestream-donations>)
>  
> at com.livestream.donations.utils.LsApiUtils$2.call(LsApiUtils.java:63 
> <https://console.cloud.google.com/debug/fromlog?appModule=default&appVersion=2-0-6&file=com%2Flivestream%2Fdonations%2Futils%2FLsApiUtils.java&line=63&logInsertId=2016-09-24%7C21%3A43%3A48.294075-07%7C10.106.10.86%7C1459635630&logNanos=1474778622511396000&nestedLogIndex=7&project=livestream-donations>)
>  
> at java.util.concurrent.FutureTask.run(FutureTask.java:260) at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1168)
>  
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:605)
>
> *Note:* The object I am storing in the memcache key has only 2 String 
> fields
>
> On Sun, Sep 25, 2016 at 6:17 PM, 'Sourav Chandra' via Google App Engine <
> google-appengine@googlegroups.com> wrote:
>
>> Hi,
>>
>> We are using java based gae standard environment. Today we have received 
>> sudden surge of below memcache errors and subsequent appengine log
>>
>> *Memcache Error Message:*
>>
>> com.google.appengine.api.memcache.MemcacheServiceException: Memcache put: 
>> Error setting single item (...)
>>
>>
>> *Subsequent Message:*
>>
>> After handling this request, the process that handled this request was 
>> found to have handled too many sequential errors, and was terminated. This 
>> is likely to cause a new process to be used for the next request to your 
>> application. If you see this message frequently, you are likely returning 
>> errors continously from your application.
>>
>> Could any of you let me know what could the reason? Also when does 
>> appengine emit the message?
>>
>> Thanks,
>> Sourav
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "Google App Engine" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/google-appengine/N1wUbRym0i0/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> google-appengine+unsubscr...@googlegroups.com.
>> To post to this group, send email to google-appengine@googlegroups.com.
>> Visit this group at https://groups.google.com/group/google-appengine.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/01a63fbe-820f-487c-a998-e8b7535d3f22%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/01a63fbe-820f-487c-a998-e8b7535d3f22%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
>
> Sourav Chandra
>
> Senior Software Engineer
>
> · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · · ·
>
> sourav.chan...@livestream.com
>
> o: +91 80 4121 8723
>
> m: +91 988 699 3746
>
> skype: sourav.chandra
>
> Livestream
>
> "Ajmera Summit", First Floor, #3/D, 68 Ward, 3rd Cross, 7th C Main, 3rd 
> Block, Koramangala Industrial Area,
>
> Bangalore 560034
>
> www.livestream.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 google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/087b4b44-6498-4e12-952f-828a3be8b6c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to