I read the Gracefully Degrading During Scheduled Maintenance page a
week ago before today's maintenance and it made a claim that the
memcache APIs would fail silently as if the item were not in the
cache.
http://code.google.com/appengine/docs/java/howto/maintenance.html
I got a lot of errors like this where the memcache was definitely
throwing exceptions that I didn't expect on cache.put()
It would be nice if a put just gracefully did not put without throwing
anything - I'd like the disable these exceptions because my app
doesn't need to know if something didn't make it into the cache. It
doesn't assume any key will be present either. Would it be a good
practice to always wrap such calls in a try/catch?
"If you want to explicitly detect that the service is disabled, you
can use the StrictErrorHandler to cause errors to be thrown on both
get() and put()."
How do I enable the NotAtAllErrorHandler?
02-17 05:42PM 47.099
Uncaught exception from servlet
com.google.appengine.api.memcache.stdimpl.GCacheException: Policy
prevented put operation
at com.google.appengine.api.memcache.stdimpl.GCache.put(GCache.java:
165)
at
com.puddleplay.babynews.BabynewsServlet.getSettings(BabynewsServlet.java:
1419)
at com.puddleplay.babynews.BabynewsServlet.doGet(BabynewsServlet.java:
142)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1093)
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.