[google-appengine] Re: Super High Latency!! many 500 response! What happen to GAE?
Hi, We are having the same problem. We have had the service down for almost 20minutes. We also use Django 1.1 and I understand than importing all modules might take time but it usually works in less than 500ms, and now it is producing DeadlineExceededError just in the imports, so before any query. This is really unstable. Can somebody explain us this, please? Thanks On Sep 22, 5:12 pm, Blixt wrote: > In my case it's throwing a DeadlineExceededError before it even > reaches the code responsible for handling the request, meaning there > are no service requests at all before the error, only imports. It > occurs mostly when starting a new instance of the application so yes, > it's related to the imports taking too long. But importing Django 1.1 > shouldn't take 30 seconds (that's the time for every request with > DeadlineExceededError). > > On Sep 22, 5:41 pm, Geoffrey Spear wrote: > > > On Sep 22, 10:25 am, Fredrik Bonander > > > wrote: > > > Yes. But I can't see how this is relevant since (at least for me) the > > > error always occur during datastore calls (at least for me) > > > If the requests it's happened on are always loading requests (they'll > > have an INFO-level logging message to that effect), it's likely > > because your framework is taking a long time to import everything, > > giving you less time to do datastore calls after the imports. If > > they're not just on loading requests, maybe you're trying to squeeze > > too many (or too large) datastore calls into a request. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Super High Latency!! many 500 response! What happen to GAE?
Well, this is the third time I try to send this message. Am not feeling very lucky today :-) Our application is suffering the same problem. App Engine is not running normally today. Apart from DeadlineExceededError, we are getting this warning: Request was aborted after waiting too long to attempt to service your request. This may happen sporadically when the App Engine serving cluster is under unexpectedly high or uneven load. If you see this message frequently, please contact the App Engine team. This warning results in an 500 error message to the user with "Error: Server Error" Someone from Google can explain this, please? Thanks -- Carlos Ble www.MavenCharts.com www.iExpertos.com www.carlosble.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Super High Latency!! many 500 response! What happen to GAE?
We are also facing this problem. Too many DeadlineExceededError. We also use Django 1.1 but the same app usually loads within 500ms, and today we have been down for about 20 minutes. Now we have deployed the version precompiling the app (just changing app.yaml and deploying) and so far we haven't found any DeadlineExceededError but still a bunch of 500 error responses, which in the logs appear as warnings: "Request was aborted after waiting too long to attempt to service your request. This may happen sporadically when the App Engine serving cluster is under unexpectedly high or uneven load. If you see this message frequently, please contact the App Engine team." Something is not working fine today definitively. Someone from Google can give us an explanation please? Thanks On Sep 22, 5:12 pm, Blixt wrote: > In my case it's throwing a DeadlineExceededError before it even > reaches the code responsible for handling the request, meaning there > are no service requests at all before the error, only imports. It > occurs mostly when starting a new instance of the application so yes, > it's related to the imports taking too long. But importing Django 1.1 > shouldn't take 30 seconds (that's the time for every request with > DeadlineExceededError). > > On Sep 22, 5:41 pm, Geoffrey Spear wrote: > > > On Sep 22, 10:25 am, Fredrik Bonander > > > wrote: > > > Yes. But I can't see how this is relevant since (at least for me) the > > > error always occur during datastore calls (at least for me) > > > If the requests it's happened on are always loading requests (they'll > > have an INFO-level logging message to that effect), it's likely > > because your framework is taking a long time to import everything, > > giving you less time to do datastore calls after the imports. If > > they're not just on loading requests, maybe you're trying to squeeze > > too many (or too large) datastore calls into a request. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Super High Latency!! many 500 response! What happen to GAE?
> > > > > > person reporting this problem using Django 1.1 (assuming you > are > > > > using > > > > > > > it :) > > > > > > > > > On Sep 22, 3:52 pm, Fredrik Bonander < > > > > carl.fredrik.bonan...@gmail.com> > > > > > > > wrote: > > > > > > > > > > Same here. Could this be related to using django 1.1? > > > > > > > > > > ..fredrik > > > > > > > > > > On Sep 22, 2010, at 11:10 AM, Blixt wrote: > > > > > > > > > > > Yup, same here. Maybe related to: > > > > > > > > > - > > > > > > > http://groups.google.com/group/google-appengine/browse_thread/thread/. > > > > .. > > > > > > > > > and > > > > > > > > > - > > > > > > > http://groups.google.com/group/google-appengine/browse_thread/thread/. > > > > .. > > > > > > > > > > > On Sep 22, 3:52 am, Eric Ka Ka Ng > wrote: > > > > > > > > >> Have great troubles in serving requests today, even with > the > > > > very > > > > > > simple one > > > > > > > > >> which usually takes <50ms!! What's wrong with GAE? Any > system > > > > > > maintenance or > > > > > > > > >> incident happening? > > > > > > > > > > >> here is one of the log > > > > > > > > > > >> 500 10530ms 0cpu_ms 0kb > > > > > > > > >> 09-21 06:48PM 05.643 > > > > > > > > > > >> Request was aborted after waiting too long to attempt to > service > > > > > > your > > > > > > > > >> request. This may happen sporadically when the App Engine > > > > serving > > > > > > > > >> cluster is under unexpectedly high or uneven load. If you > see > > > > this > > > > > > > > >> message frequently, please contact the App Engine team. > > > > > > > > > > >> - eric > > > > > > > > > > > -- > > > > > > > > > You received this message because you are subscribed to the > > > > Google > > > > > > Groups "Google App Engine" group. > > > > > > > > > To post to this group, send email to > > > > > > google-appeng...@googlegroups.com. > > > > > > > > > To unsubscribe from this group, send email to > > > > > > google-appengine+unsubscr...@googlegroups.com e...@googlegroups.com> > > > e...@googlegroups.com> > > > > > > . > > > > > > > > > For more options, visit this group athttp:// > > > > > > groups.google.com/group/google-appengine?hl=en. > > > > > > > > > > -- > > > > > > > > Fredrik Bonander > > > > > > > > carl.fredrik.bonan...@gmail.com > > > > > > > > +46 70 943 5441 > > > > > > > > > > - the infinite power of the creative mind - > > > > > > > > -- > > > > > > You received this message because you are subscribed to the > Google > > > > Groups > > > > > > "Google App Engine" group. > > > > > > To post to this group, send email to > google-appengine@googlegroups.com > > > > . > > > > > > To unsubscribe from this group, send email to > > > > > > google-appengine+unsubscr...@googlegroups.com e...@googlegroups.com> > > > e...@googlegroups.com> > > > > > > . > > > > > > For more options, visit this group at > > > > > >http://groups.google.com/group/google-appengine?hl=en. > > > > > > > -- > > > > > GAE粉丝团http://gaefons.appspot.com/ > > > > > > -- > > > > You received this message because you are subscribed to the Google > Groups > > > > "Google App Engine" group. > > > > To post to this group, send email to > google-appeng...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > google-appengine+unsubscr...@googlegroups.com e...@googlegroups.com> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-appengine?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- Carlos Ble www.MavenCharts.com www.iExpertos.com www.carlosble.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Super High Latency!! many 500 response! What happen to GAE?
Jesus! the sooner I write the email, the sooner I get the 500 again :'-( I better shut up 2010/9/23 Carlos Ble > Hi guys, > Yesterday we deployed a version using precompilacion. app.yaml: > > ... > api_version: 1 > > derived_file_type: > - python_precompiled > > handlers: > ... > > We also have a monitoring tool that makes a request to the home page every > 4 minutes, and a selenium test every 15 minutes. That helps keeping the app > alive, so that when users come to visit after some inactivity they don't get > the 500 error. Don't know if this is bad for google but it is definitively > good for our users and that is what matters to us. > > Since yesterday night, we haven't seen the app fail. > Hope that helps to you guys :-S > > > > > > 2010/9/23 James Saull > > I have noticed that if my application is idle for a while I am likely >> to get the "request was aborted..." message. But then when I retry the >> request it is likely to respond. I can then click around the >> application quickly and responsively. If I then leave it for a short >> while it goes back into failure mode. >> >> Has Google got some aggressive garbage collecting going on? I.e. idle >> apps are unloaded very quickly but cannot be reloaded into the engine >> quickly enough to serve the first request? This would explain the >> service dashboard showing 100% uptime because the apps being pinged by >> the monitoring tool are kept alive and loaded by the engine -i.e. they >> are effectively not allowed to idle and be unloaded due to the >> monitoring activity? >> >> Don't want to write a cron job to keep my app alive! >> >> On Sep 23, 9:13 am, James Saull wrote: >> > I am finding my app works for a while and then stops and then comes >> > back again etc. This is now the third day of being unstable after >> > being stable for ages. I haven't changed the app at all. The main URI >> > normally averages: 57ms latency and 79cpu_ms. One page which is just a >> > Django template page and makes no calls to memcache or the DB gets >> > errors like this: >> > >> > "Request was aborted after waiting too long to attempt to service your >> > request. This may happen sporadically when the App Engine serving >> > cluster is under unexpectedly high or uneven load. If you see this >> > message frequently, please contact the App Engine team." >> > >> > Glad to see Google Engineers apparently ignoring this. I love the >> wayhttp://code.google.com/status/appengineshows that AppEngine is >> > running fine. What rubbish! >> > >> > I use Azure and AWS and this is proving to be the worst cloud platform >> > of the lot so far whilst promising to be the most interesting for >> > certain class of application. Confidence in Google is draining fast. >> > Yes I know it is preview but Azure in Beta was far better and there >> > were engineers looking in the groups and scouring twitter etc. Would >> > you consider GAE for production applications if the service dashboard >> > says "100% perfect" when clearly it is not, and the engineers are not >> > engaging after a few days? >> > >> > Very disappointed. >> > >> > On Sep 23, 7:07 am, Eric Ka Ka Ng wrote: >> > >> > >> > >> > > i'm NOT using Django so i guess it's not related to importing Django >> modules >> > >> > > the problem for me, was even for some very simple request which >> usually >> > > takes <50ms, would still be facing deadlineExceedError. >> > >> > > but one common properties for all these long latency calls are, yes, >> they >> > > are retrieving something from DS, so i think it's sth related to DS >> get >> > >> > > the problem happened yesterday, and now seems the latency is getting >> normal. >> > > not sure if G has done anything about it... >> > >> > > On 23 September 2010 13:45, Raymond C. wrote: >> > >> > > > Really disappointed that after 24 hours and still no one from Google >> > > > is responding, or at least tell us someone is looking at it... >> > >> > > > On Sep 23, 10:46 am, ego008 wrote: >> > > > > Same here.http://gaefons.appspot.com/ >> > >> > > > > 2010/9/22 James Saull >> > >> > > > > > I am using Django as is bundled by default by GAE and I am >> getting
Re: [google-appengine] Indexes problem after deployment
Yep, that is the reason. You have to wait for them to be serving. 2010/9/22 John Tadros > Dear All, > > When I deploy my application, and try to run it, I get a server error. > When I go to the logs, I find this error: > > com.google.appengine.api.datastore.DatastoreNeedIndexException: The > index for this query is not ready to serve. See the Datastore Indexes > page in the Admin Console.. ancestor="true" source="manual"> > > > > followed by the stacktrace of the exception. > > When I open the datastore indexes section, I find that all the indexes > state is "Building" not "Serving". So is this the reason for the > exception that I am getting ? > > Best Regards > John > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- Carlos Ble www.MavenCharts.com www.iExpertos.com www.carlosble.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Super High Latency!! many 500 response! What happen to GAE?
Same things you say are happening to us. The same code in one app fails more than other app. Thanks for sharing the fact that making requests constantly do not fix anything :-( Hope we get some info soon. 2010/9/23 James Saull > Whilst yours is bombing out, mine is still serving results - for the > moment anyway. Clearly we are all intermittently affected at different > times. Google is not listening by the way as they clearly put all > their faith in their misguided status dashboard. > > On Sep 23, 1:50 pm, Nikolai wrote: > > We're also having lots and lots of deadline exceeded errors in our App > > since about 12 hours. Deploying a new version seems to fix the problem > > for a while, but then everything is back to 500 errors. > > It's the same code that did the job just fine for the last month ... > > > > http://189-fabian.latest.dctptv.appspot.come.g. this version is > > throwing 500 errors all the time ... other versions (with the same > > code) throw 500 errors sometimes and sometimes not. > > > > could someone at google have a look into this? > > > > regards, > > nikolai > > > > On 22 Sep., 03:52, Eric Ka Ka Ng wrote: > > > > > > > > > Have great troubles in serving requests today, even with the very > simple one > > > which usually takes <50ms!! What's wrong with GAE? Any system > maintenance or > > > incident happening? > > > > > here is one of the log > > > > > 500 10530ms 0cpu_ms 0kb > > > 09-21 06:48PM 05.643 > > > > > Request was aborted after waiting too long to attempt to service your > > > request. This may happen sporadically when the App Engine serving > > > cluster is under unexpectedly high or uneven load. If you see this > > > message frequently, please contact the App Engine team. > > > > > - eric > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- Carlos Ble www.MavenCharts.com www.iExpertos.com www.carlosble.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Latency spikes and aborted requests in the last 24 hours
Reddit: >>>> <http://www.reddit.com/r/appengine><http://www.reddit.com/r/appengine> >>>> http://www.reddit.com/r/appengine >>>> Twitter: <http://twitter.com/app_engine><http://twitter.com/app_engine> >>>> http://twitter.com/app_engine >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "Google App Engine" group. >>>> To post to this group, send email to >>>> >>>> google-appeng...@googlegroups.com. >>>> To unsubscribe from this group, send email to >>>> >>>> google-appengine+unsubscr...@googlegroups.com. >>>> For more options, visit this group at >>>> <http://groups.google.com/group/google-appengine?hl=en><http://groups.google.com/group/google-appengine?hl=en> >>>> http://groups.google.com/group/google-appengine?hl=en. >>>> >>> >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine" group. >> To post to this group, send email to >> >> google-appeng...@googlegroups.com. >> To unsubscribe from this group, send email to >> >> google-appengine+unsubscr...@googlegroups.com. >> For more options, visit this group at >> <http://groups.google.com/group/google-appengine?hl=en><http://groups.google.com/group/google-appengine?hl=en> >> http://groups.google.com/group/google-appengine?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to > google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > > google-appengine+unsubscr...@googlegroups.com. > For more options, visit this group at > <http://groups.google.com/group/google-appengine?hl=en> > http://groups.google.com/group/google-appengine?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > -- Carlos Ble www.MavenCharts.com www.iExpertos.com www.carlosble.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Latency spikes and aborted requests in the last 24 hours
gt; > Request was aborted after waiting too long to attempt to service your > > > request. This may happen sporadically when the App Engine serving > > > cluster is under unexpectedly high or uneven load. If you see this > > > message frequently, please contact the App Engine team. > > > > > HTH? > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Google App Engine" group. > > > To post to this group, send email to google-appengine@googlegroups.com > . > > > To unsubscribe from this group, send email to > > > google-appengine+unsubscr...@googlegroups.com e...@googlegroups.com> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-appengine?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- Carlos Ble www.MavenCharts.com www.iExpertos.com www.carlosble.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] For the source when sending mail to the administrator
Not sure if I understand what you say but, in order to send emails, the sender has to have permissions in your application, so make sure yo go to permissions in the admin panel, and the email who is the sender has got the permission. Cheers 2010/9/27 yaboo > Thank you for your help. > My name is yaboo. > > GAE / J Low Level API in the mail "mail sent to the administrator," > the source of the specification when performing > Please tell me. > > com.google.appengine.api.mail.MailService # sendToAdmins use, > The source is "any string @ application ID.appspotmail.com" set up. > > At runtime, the following Exception occurred. > > java.lang.IllegalArgumentException: Unauthorized Sender: Unauthorized > sender >at > com.google.appengine.api.mail.MailServiceImpl.doSend > (MailServiceImpl.java: > 104) >at > com.google.appengine.api.mail.MailServiceImpl.sendToAdmins > (MailServiceImpl.java: > 26) > > Sources "GAE administrator Gmail address" is set, the well has been > sent. > > sendToAdmins the source is "any string @ Application > ID.appspotmail.com" > Why can not I use? > > Know, please tell us. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to google-appeng...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- Carlos Ble www.MavenCharts.com www.iExpertos.com www.carlosble.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Latency spikes and aborted requests in the last 24 hours
We are still facing as many DeadlineExceededError as the past days, but now it is happening while sending emails: DeadlineExceededError: The API call mail.Send() took too long to respond and was cancelled So the app loads, it works and it gets this exception just trying to send a single email to a single recipient. Appid: mavencharts Thanks On 29 sep, 03:32, Jason C wrote: > As of 7.28p (log time) on Tuesday night, my logs show a massive > improvement. MASSIVE. > > I almost cannot believe the difference. > > Did something change? Man, oh man I hope this isn't just a time of day > anomaly... > > This. rocks. hard. > > j > > On Sep 27, 4:55 pm, Jason C wrote: > > > Appid: steprep, python, QPS around 9-10 > > > We're still seeing large error rates on requests (primarily cron/ > > taskqueue), seemingly to do with autoscaling. Here's an example chunk: > > > 09-27 03:41PM 22.306 /_ah/queue/deferred 500 35908ms > > 09-27 03:41PM 48.096 /_ah/queue/deferred 500 10028ms > > 09-27 03:41PM 28.501 /_ah/queue/deferred 500 29527ms > > 09-27 03:41PM 46.634 /_ah/queue/deferred 500 10034ms > > 09-27 03:41PM 20.134 /_ah/queue/deferred 500 35703ms > > 09-27 03:41PM 20.146 /_ah/queue/deferred 500 35691ms > > 09-27 03:41PM 18.991 /mgmt/jobs/put/deferred/? > > jobId=6c7dae4c-7c6a-4290-96b7-8cae4bd66410 500 36756ms > > 09-27 03:41PM 45.607 /_ah/queue/deferred 500 10013ms > > 09-27 03:41PM 45.297 /mgmt/jobs/put/deferred/?jobId=c5f66519- > > f37b-4c06-87c8-ac1fe3db6633 500 10040ms > > 09-27 03:41PM 44.434 /_ah/queue/deferred 500 10040ms > > 09-27 03:41PM 43.555 /_ah/queue/deferred 500 10026ms > > 09-27 03:41PM 43.236 /_ah/queue/deferred 500 10029ms > > 09-27 03:41PM 43.230 /_ah/queue/deferred 500 10005ms > > 09-27 03:41PM 42.436 /_ah/queue/deferred 500 10013ms > > 09-27 03:41PM 22.305 /_ah/queue/deferred 500 29862ms > > 09-27 03:41PM 41.949 /_ah/queue/deferred 500 10040ms > > 09-27 03:41PM 22.174 /_ah/queue/deferred 500 29437ms > > 09-27 03:41PM 41.446 /_ah/queue/deferred 500 10006ms > > 09-27 03:41PM 41.308 /_ah/queue/deferred 500 10041ms > > 09-27 03:41PM 41.188 /_ah/queue/deferred 500 10008ms > > 09-27 03:41PM 40.760 /_ah/queue/deferred 500 10050ms > > 09-27 03:41PM 40.551 /_ah/queue/deferred 500 10132ms > > 09-27 03:41PM 09.059 /_ah/queue/deferred 500 41582ms > > 09-27 03:41PM 21.013 /mgmt/search/start/ 500 29442ms > > 09-27 03:41PM 39.855 /_ah/queue/deferred 500 10020ms > > > Ikai, please do let me know if there's anything I can do to help from > > my end. > > > Thanks, > > j > > > On Sep 26, 2:43 am, Robin wrote: > > > > I have seen this just once on Java. The app ID is visualwebflows. All > > > custom code, using the datastore directly without an ORM. > > > > Only happened once, but the site is in development so not seeing more > > > than 100 hits a day. > > > > I have redacted the URLs used, but below is a stack trace from the > > > error log. > > > > Robin Message > > > > [23/Sep/2010:05:58:23 -0700] "GET REDACTED HTTP/1.1" 500 0 - "Mozilla/ > > > 5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.1.9) Gecko/20100330 Fedora/ > > > 3.5.9-1.fc11 Firefox/3.5.9,gzip(gfe)" "visualwebflows.appspot.com" > > > ms=30574 cpu_ms=706 api_cpu_ms=64 cpm_usd=0.019645 pending_ms=232 > > > exit_code=104 > > > > # > > > W 09-23 05:58AM 23.264 > > > > Error for REDACTED > > > com.google.apphosting.runtime.HardDeadlineExceededError: This request > > > (322478a37b051ea5) started at 2010/09/23 12:57:52.952 UTC and was > > > still executing at 2010/09/23 12:58:22.751 UTC. > > > at > > > com.google.appengine.runtime.Request.process-322478a37b051ea5(Request.java) > > > at java.io.FileInputStream.readBytes(Native Method) > > > at java.io.FileInputStream.read(FileInputStream.java:231) > > > at sun.misc.Resource.getBytes(Resource.java:114) > > > at java.net.URLClassLoader.defineClass(URLClassLoader.java:273) > > > at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source) > > > at > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp > > > l.java: > > > 43) > > > at java.lang.reflect.Method.invoke(Method.java:616) > > > at java.lang.ClassLoader.loadClass(ClassLoader.java:268) > > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336) > > > at > > > net.thetadesign.cherry.server.EditServlet.getOutputFormatter(EditServlet.ja > > > va: > > > 215) > > > at > > > net.thetadesign.cherry.server.EditServlet.evaluate(EditServlet.java: > > > 138) > > > at > > > net.thetadesign.cherry.server.EditServlet.render(EditServlet.java: > > > 108) > > > at > > > net.thetadesign.cherry.server.EditServlet.render(EditServlet.java: > > > 50) > > > at > > > net.thetadesign.cherry.server.AbstractServlet.showController(AbstractServle > > > t.java: > > > 176) > > > at > > > net.thetadesign.cherry.server.AbstractServlet.doGet(AbstractServlet.java: > > > 144) > > > at javax.servlet.http.HttpServlet.s
[google-appengine] Re: Frequent deadline exceeded errors.
Hi, Our app (id=mavencharts) was down last night from 8:04PM (Pacific time) to 8:51PM, this is almost 1 hour. We just got error 500 trying to load the home page (google.appengine.runtime.DeadlineExceededError and also the warning saying.. "After handling this request..." which is also error code 500). According to appstats, our app makes 7 queries to datastore to load the home and it usually loads within 300ms. When memcache is available the home page makes just 1 query to datastore. We use GAE Django-helper with django 1.1 Since last september the 13th, system is unreliable and we are really worried because things are not getting better. Google engineers tell us they know there is a problem but nothing more. If Google think this situation is going to last, it would be great to tell us, so that we can consider moving to another cloud system, rather than just wait. Thanks On 9 oct, 23:13, Robert Lancer wrote: > I experienced the same problem for a few minutes on this past > Thursday, unfortunately it was during a sales pitch. I wish Google > would let us buy our way into a more reliable uptime, some apps need > to be up no mater what, while others can tolerate sporadic errors. > > On Oct 9, 2:13 pm, Zarko wrote: > > > We see elevation in 500 requests ("Request was aborted after waiting > > too long to attempt to service your request. This may happen > > sporadically when the App Engine serving cluster is under unexpectedly > > high or uneven load. If you see this message frequently, please > > contact the App Engine team.") > > today also... > > > On Oct 9, 7:55 pm, John Gardner wrote: > > > > After exercising the site a while, it's smoothed out. It seems like > > > the 500 errors were from trying to spin up new instances. The site > > > was completely idle before visitors arrived and the 500 storm started. > > > > It seems like reserved instances is a *critical* feature. There's no > > > way we can leave beta when the first impression a user gets of our > > > site is a 500 page. We have billing enabled, but all the quota in the > > > world doesn't help if the user sees an error page and walks away... > > > > -John > > > > On Oct 9, 12:30 pm, John Gardner wrote: > > > > > We're getting constant DeadlineExceededErrors on our production site > > > > this morning. > > > > > Our app ID is cxiongame. I'm unable to log in; the login request runs > > > > into the deadline, when this is ordinarily completed in less than 1 > > > > second. > > > > > -John -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Still getting errors sending mail
It just has happened to our app (id=mavencharts). 12:55PM Pacific time. File "/base/python_runtime/python_lib/versions/1/google/appengine/api/ apiproxy_rpc.py", line 126, in CheckSuccess\nraise self.exception\n \nDeadlineExceededError: The API call mail.Send() took too long to respond and was cancelled.\n'] Can I provide any other info to get this solved? Thanks On 11 oct, 16:27, Jamie H wrote: > Ikai, > > I just sent several mails and I am very pleased to report I received 0 > errors! Looks like the fix did the job. Many thanks. > > On Oct 8, 7:21 pm, "Ikai Lan (Google)" > wrote: > > > The fix has been rolled out. Please let us know if you continue to see > > issues. > > > -- > > Ikai Lan > > Developer Programs Engineer, Google App Engine > > Blogger:http://googleappengine.blogspot.com > > Reddit:http://www.reddit.com/r/appengine > > Twitter:http://twitter.com/app_engine > > > On Wed, Oct 6, 2010 at 3:54 PM, Jamie H wrote: > > > Thanks for the reply! Glad to hear the team is on it. If it helps at > > > all it appears I only get it when doing alot of mail.send()'s at a > > > time... my task is firing them off at 5/sec ... when doing one at a > > > times I don't see it happening. > > > > On Oct 6, 2:00 pm, "Ikai Lan (Google)" > > > > > > > wrote: > > > > We're testing a fix, but it's not ready yet. > > > > > -- > > > > Ikai Lan > > > > Developer Programs Engineer, Google App Engine > > > > Blogger:http://googleappengine.blogspot.com > > > > Reddit:http://www.reddit.com/r/appengine > > > > Twitter:http://twitter.com/app_engine > > > > > On Wed, Oct 6, 2010 at 11:45 AM, Jamie H wrote: > > > > > As another follow up, I just sent out ~700 emails and received this > > > > > error 29 times. The interesting part is that it appears even when > > > > > this exception is raised, the email can still be sent. Thus 29 of my > > > > > emails were sent twice. Anybody have any information on this > > > > > situation ? > > > > > > On Oct 5, 5:04 pm, Jamie H wrote: > > > > > > Sorry to reply to my own message, but I wanted to add that I am > > > > > > about > > > > > > to start an email campaign for a client, so it is very important > > > > > > that > > > > > > my emails are successfully sent... if not, and invitations are not > > > > > > delivered, nobody will show up for several events around the > > > > > > country, > > > > > > and alot of people will be very upset and embarassed to say the > > > > > > least... I have seen another poster on the group mention that > > > recently > > > > > > his emails were not delivered, with no exceptions thrown... I was > > > > > > really hoping to get some response, say.. yes there is an issue, you > > > > > > can do x y and z to avoid it, or, yes the mail api should be > > > > > > functioning properly > > > > > > > On Oct 5, 4:55 pm, Jamie H wrote: > > > > > > > > Just moments ago I sent 21 emails, and received 4 of the following > > > > > > > error: > > > > > > > > 10-05 02:32PM 26.045 > > > > > > > > The API call mail.Send() took too long to respond and was > > > cancelled. > > > > > > > ... > > > > > > > DeadlineExceededError: The API call mail.Send() took too long to > > > > > > > respond and was cancelled. > > > > > > > > Now, I have learned over time so I send all emails via a task, so, > > > > > > > eventually all emails were sent, but can somebody from Google > > > comment > > > > > > > on this error? I have seen some discussion in the group about it > > > but > > > > > > > never seen any resolution. It seems like I didn't get it very > > > often, > > > > > > > say, a month ago > > > > > > > > app-id: moto-tmobile > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "Google App Engine" group. > > > > > To post to this group, send email to google-appengine@googlegroups.com > > > . > > > > > To unsubscribe from this group, send email to > > > > > google-appengine+unsubscr...@googlegroups.com > > > > > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/google-appengine?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Google App Engine" group. > > > To post to this group, send email to google-appeng...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > google-appengine+unsubscr...@googlegroups.com > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Still getting errors sending mail
However the user just told us the he has got the email this time. Does it always tries to resend the email after the failure? Can we make sure every time Send is cancelled, it is processed at some point later? On 11 oct, 21:43, Carlos Ble wrote: > It just has happened to our app (id=mavencharts). > > 12:55PM Pacific time. > > File "/base/python_runtime/python_lib/versions/1/google/appengine/api/ > apiproxy_rpc.py", line 126, in CheckSuccess\n raise self.exception\n > \nDeadlineExceededError: The API call mail.Send() took too long to > respond and was cancelled.\n'] > > Can I provide any other info to get this solved? > > Thanks > > On 11 oct, 16:27, Jamie H wrote: > > > Ikai, > > > I just sent several mails and I am very pleased to report I received 0 > > errors! Looks like the fix did the job. Many thanks. > > > On Oct 8, 7:21 pm, "Ikai Lan (Google)" > > wrote: > > > > The fix has been rolled out. Please let us know if you continue to see > > > issues. > > > > -- > > > Ikai Lan > > > Developer Programs Engineer, Google App Engine > > > Blogger:http://googleappengine.blogspot.com > > > Reddit:http://www.reddit.com/r/appengine > > > Twitter:http://twitter.com/app_engine > > > > On Wed, Oct 6, 2010 at 3:54 PM, Jamie H wrote: > > > > Thanks for the reply! Glad to hear the team is on it. If it helps at > > > > all it appears I only get it when doing alot of mail.send()'s at a > > > > time... my task is firing them off at 5/sec ... when doing one at a > > > > times I don't see it happening. > > > > > On Oct 6, 2:00 pm, "Ikai Lan (Google)" > > > > > > > > > wrote: > > > > > We're testing a fix, but it's not ready yet. > > > > > > -- > > > > > Ikai Lan > > > > > Developer Programs Engineer, Google App Engine > > > > > Blogger:http://googleappengine.blogspot.com > > > > > Reddit:http://www.reddit.com/r/appengine > > > > > Twitter:http://twitter.com/app_engine > > > > > > On Wed, Oct 6, 2010 at 11:45 AM, Jamie H wrote: > > > > > > As another follow up, I just sent out ~700 emails and received this > > > > > > error 29 times. The interesting part is that it appears even when > > > > > > this exception is raised, the email can still be sent. Thus 29 of > > > > > > my > > > > > > emails were sent twice. Anybody have any information on this > > > > > > situation ? > > > > > > > On Oct 5, 5:04 pm, Jamie H wrote: > > > > > > > Sorry to reply to my own message, but I wanted to add that I am > > > > > > > about > > > > > > > to start an email campaign for a client, so it is very important > > > > > > > that > > > > > > > my emails are successfully sent... if not, and invitations are not > > > > > > > delivered, nobody will show up for several events around the > > > > > > > country, > > > > > > > and alot of people will be very upset and embarassed to say the > > > > > > > least... I have seen another poster on the group mention that > > > > recently > > > > > > > his emails were not delivered, with no exceptions thrown... I was > > > > > > > really hoping to get some response, say.. yes there is an issue, > > > > > > > you > > > > > > > can do x y and z to avoid it, or, yes the mail api should be > > > > > > > functioning properly > > > > > > > > On Oct 5, 4:55 pm, Jamie H wrote: > > > > > > > > > Just moments ago I sent 21 emails, and received 4 of the > > > > > > > > following > > > > > > > > error: > > > > > > > > > 10-05 02:32PM 26.045 > > > > > > > > > The API call mail.Send() took too long to respond and was > > > > cancelled. > > > > > > > > ... > > > > > > > > DeadlineExceededError: The API call mail.Send() took too long to > > > > > > > > respond and was cancelled. > > > > > > > > > Now, I have learned over time so I send all emails via a task, > > > > > > > > so, > > > > > > > > eventually all emails were sent, but
[google-appengine] Re: Frequent deadline exceeded errors.
Hi, We are facing several DeadlineExceededError since yesterday. Appid = mavencharts 10-20 04:30AM 24.323 / 500 31863ms 1539cpu_ms At that time Average QPS was about 0.04 and there was 2 instances running. Thanks On 18 oct, 12:03, Stepan wrote: > Last 3-4 days my app has like 80% DeadlineExceededErro; app ID is > "pixycity". That's sort of unacceptable. Please let us know what's > happening. Thanks > -stepan -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Frequent deadline exceeded errors.
Our site is dead right now because of this issues. 10-20 04:40AM 21.692 / 500 31489ms 500cpu_ms Total number of instances Average QPS Average Latency Average Memory 1 total 0.033 30463.0 ms 31.8 MBytes Instances QPS Latency Memory 0.033 30463.0 ms 31.8 MBytes Is there anything we can do to make our site work again? On 20 oct, 12:40, Carlos Ble wrote: > Hi, > We are facing several DeadlineExceededError since yesterday. Appid = > mavencharts > > 10-20 04:30AM 24.323 / 500 31863ms 1539cpu_ms > > At that time Average QPS was about 0.04 and there was 2 instances > running. > > Thanks > > On 18 oct, 12:03, Stepan wrote: > > > Last 3-4 days my app has like 80% DeadlineExceededErro; app ID is > > "pixycity". That's sort of unacceptable. Please let us know what's > > happening. Thanks > > -stepan > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Frequent deadline exceeded errors.
More info: 10-20 04:41AM 48.795 / 500 38679ms 919cpu_ms - (DeadeLineExceededError) Instances: Total number of instances Average QPS Average Latency Average Memory 2 total 0.017 160.2 ms35.4 MBytes Instances QPS Latency Memory 0.000 0.0 ms 39.6 MBytes 0.033 320.5 ms31.2 MBytes On 20 oct, 12:40, Carlos Ble wrote: > Hi, > We are facing several DeadlineExceededError since yesterday. Appid = > mavencharts > > 10-20 04:30AM 24.323 / 500 31863ms 1539cpu_ms > > At that time Average QPS was about 0.04 and there was 2 instances > running. > > Thanks > > On 18 oct, 12:03, Stepan wrote: > > > Last 3-4 days my app has like 80% DeadlineExceededErro; app ID is > > "pixycity". That's sort of unacceptable. Please let us know what's > > happening. Thanks > > -stepan > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Frequent deadline exceeded errors.
This answer does not help Ikai. We are facing this problem even in urls that just load and render a simple form. Just rendering html. They even don't access Datastore and still we get DeadelineExceededError. In the last 2 days we have had about 30 falls. Sometimes the problem even does not reach the logs, we just see the message in the screen and nothing goes to the logs. On the other hand, the Datastore is terribly slow and we all know that, so Google can't tell us our methods should run under 1000ms. Because the technology you provide is so slow!. This is not serious. Again, is there anything we can make to fix this situation? Thanks On 21 oct, 20:22, "Ikai Lan (Google)" wrote: > Guys, > > This is likely happening because your requests are taking on the order of > seconds to execute. Additional instances are not being added to your App > Engine apps, so incoming requests are being placed into a pending queue and > never being able to execute, causing them to abort. You will need to reduce > your user facing requests to under 1000ms so that App Engine can add > instances. You'll want to move slower operations to task queues. > > -- > Ikai Lan > Developer Programs Engineer, Google App Engine > Blogger:http://googleappengine.blogspot.com > Reddit:http://www.reddit.com/r/appengine > Twitter:http://twitter.com/app_engine > > On Wed, Oct 20, 2010 at 9:07 AM, TAKEUCHI POMU wrote: > > My app(appid: mb4sqjp) also have similar problem for these couple of > > days... > > > Sometimes it leaves message I've never seen. > > > For the most part, log says > > - "Request was aborted after waiting too long to attempt to service > > your request. This may happen sporadically when the App Engine serving > > cluster is under unexpectedly high or uneven load. If you see this > > message frequently, please contact the App Engine team." > > > I also found, > > - "10-20 08:44AM 03.505 > > A serious problem was encountered with the process that handled this > > request, causing it to exit. 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 should contact the App Engine team. (Error > > code 203)" > > > I saw this message for the first time, > > - "Failed startup of context > > com.google.apphosting.utils.jetty.runtimeappenginewebappcont...@831a91 > > {/,/base/data/home/apps/mb4sqjp/xxx.345605032354519732} > > com.google.apphosting.runtime.security.SystemFailureException: Unable > > to get a resource > > at > > com.google.appengine.runtime.Request.process-75e3768d20b77cee(Request.java) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:268) > > at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:336)" > > > Other versions of my app also end with 500 very frequently. > > > Thanks in advance, > > Pomu > > > 2010/10/20 Carlos Ble : > > > More info: > > > > 10-20 04:41AM 48.795 / 500 38679ms 919cpu_ms - > > > (DeadeLineExceededError) > > > > Instances: > > > > Total number of instances Average QPS Average Latency > > Average > > > Memory > > > 2 total 0.017 160.2 ms 35.4 MBytes > > > Instances QPS Latency Memory > > > 0.000 0.0 ms 39.6 MBytes > > > 0.033 320.5 ms 31.2 MBytes > > > > On 20 oct, 12:40, Carlos Ble wrote: > > >> Hi, > > >> We are facing several DeadlineExceededError since yesterday. Appid = > > >> mavencharts > > > >> 10-20 04:30AM 24.323 / 500 31863ms 1539cpu_ms > > > >> At that time Average QPS was about 0.04 and there was 2 instances > > >> running. > > > >> Thanks > > > >> On 18 oct, 12:03, Stepan wrote: > > > >> > Last 3-4 days my app has like 80% DeadlineExceededErro; app ID is > > >> > "pixycity". That's sort of unacceptable. Please let us know what's > > >> > happening. Thanks > > >> > -stepan > > > > -- > > > You received this message because you are subscribed to the Google Groups > > "Google App Engine" group. > > > To post to this group, send email to google-appeng...@googlegroups.com. > > > To unsubscribe from this group, send email to > > google-appengine+unsubscr...@googlegroups.com > > . > > > For more options, visit this group at > >http://groups.google.com/group/google-appengine?hl=en. > > > -- > > You received this message bec
[google-appengine] Re: Frequent deadline exceeded errors.
Is there a way to optimize Gae-Django-Helper load time? Thanks On 26 oct, 00:37, Geoffrey Spear wrote: > On Oct 25, 12:37 pm, Carlos Ble wrote: > > > This answer does not help Ikai. We are facing this problem even in > > urls that just load and render a simple form. > > ...After your Django install loads 90% of the modules in pypi. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Latency spikes and aborted requests in the last 24 hours
Same here. We are just planning a migration out of GAE :-( On 27 oct, 19:44, johnP wrote: > Appengine has been horrible since the last maintenance. Periodic > waves of "Request was aborted after waiting too long..." and > DeadlineExceededErrors... Flurries of 25-100 of these in a 2-3 minute > period. Occurs on simple pages as well as db-intensive ones. I'm > using Django Appengine Patch. > > It was bad like this in the late spring, and got better in the summer > up until the last maintenance. Then it got bad again. I guess a .1-. > 5% error rate might be survivable, but I'd hope that the standard > we're trying to achieve is a bit higher than this. > > :) > > On Oct 26, 11:16 am, derrickschneider > wrote: > > > I wanted to chime in. We're seeing high latency (10s, 0 cpu_ms) on > > tasks that are put into the queue on an hourly basis. This has been > > going on for a couple of weeks at least. The end result is that we're > > churning through our CPU time early in the morning, and then our app > > is dead for the real work it needs to do the rest of the day. I've > > temporarily "fixed" the problem by removing our hourly jobs. This is > > coming up on a crucial time for our application, so it would be nice > > to know the status. > > > appid is maxistelemetry. All Python, using task queues heavily to do > > periodic aggregations of information in the datastore. The task queues > > uses Django templating to parse expressions in config files. Just the > > default SDK (upgraded to 1.3.8 a few days ago), no special libraries. > > > Derrick > > > On Oct 19, 11:55 am, "Ikai Lan (Google)" > > wrote: > > > > Is the main page doing something that would take a long time to load? > > > Multiple datastore calls, URLFetches? > > > > -- > > > Ikai Lan > > > Developer Programs Engineer, Google App Engine > > > Blogger:http://googleappengine.blogspot.com > > > Reddit:http://www.reddit.com/r/appengine > > > Twitter:http://twitter.com/app_engine > > > > On Tue, Oct 19, 2010 at 10:54 AM, Stepan wrote: > > > > My app id pixycity, it's unusable for last 4 days, cold starts end > > > > regularly in DeadlineExceededError. One week ago the cold starts took > > > > long but were successful. > > > > Thanks > > > > Stepan > > > >www.pixycity.com > > > > > -- > > > > You received this message because you are subscribed to the Google > > > > Groups > > > > "Google App Engine" group. > > > > To post to this group, send email to google-appeng...@googlegroups.com. > > > > To unsubscribe from this group, send email to > > > > google-appengine+unsubscr...@googlegroups.com > > > e...@googlegroups.com> > > > > . > > > > For more options, visit this group at > > > >http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: How to mock or instantiate App Engine Entity when unit testing
App Engine is so great that you can not write unit tests using entities even if you don't persist them. Just calling the constructor of an entity makes all the datastore stuff load which is slow. You do not want your unit test to take 1 minute to run, do you? What we have done to be able to write unit tests is to not create objects directly but use a factory. So we have an EntitiesFactory which give us objects which are not actual entities but have the same properties. Apart from the benefit of running tests fast and isolated (because they are not real entities they can't alter database), we get a new layer that makes it easy to migrate to other persistence mechanisms. Cheers On 28 oct, 19:52, "Ikai Lan (Google)" wrote: > Do you need to mock Entity? Can you use a real instance of an Entity and > check for state changes? You can mock out DatastoreService, so it might make > more sense to write your expects() in those mocks instead. Entity classes > only really have getProperty() and setProperty(), and in my opinion, it's > not worth writing tests to see if these get called. What are you trying to > do? > > -- > Ikai Lan > Developer Programs Engineer, Google App Engine > Blogger:http://googleappengine.blogspot.com > Reddit:http://www.reddit.com/r/appengine > Twitter:http://twitter.com/app_engine > > On Thu, Oct 28, 2010 at 9:31 AM, Mayumi Liyanage < > > mayumi.liyan...@coldwin.com> wrote: > > In the project I'm working on we are using GWT + GAE. We are unit > > testing using automocking container Jukito (http://code.google.com/p/ > > jukito/) which is build on top of Mokito (http://code.google.com/p/ > > mockito/) + JUnit. > > The problem is unit testing the Mapper API. Since Mapper API's map > > method takes an Entity as a argument so testing framework will have to > > have access to this Entity class. However we could not mock the Entity > > class since it is a final class. Also, we could not instantiate the > > Entity class outside of GAE environment. ' > > Does anyone have workaround for unit testing using Entity? > > > Thanks. > > > -- > > You received this message because you are subscribed to the Google Groups > > "Google App Engine" group. > > To post to this group, send email to google-appeng...@googlegroups.com. > > To unsubscribe from this group, send email to > > google-appengine+unsubscr...@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/google-appengine?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.