News for hackers. Stuff that matters.
Re:Is Google App Engine Ready for Prime Time? by litewulf on Friday January 02, 2009 @05:41AM (#417256)
Do you have any pointers to what was wrong and how it was resolved?
Re:Is Google App Engine Ready for Prime Time? by davepeck on Friday January 02, 2009 @12:56PM (#417491)
Unfortunately, the issue still lurks.

Basically, some combination of puts to one of our models would cause queries to return inconsistent results. For example, the query:

SELECT * FROM MyModel WHERE property=True

would return N results, but

SELECT * FROM MyModel WHERE property=True ORDER BY foo

would return far fewer than N results.

It appears that _something_ we were doing exercised an AppEngine bug that caused the indexes to get corrupted. (Note that this would happen even from AppEngine's data viewer -- which is to say, we got N by paging through ALL results, not just one fetched batch.)

We worked with Google but designing a simple repro case proved difficult -- the corruption happened only under high load, and only on one of our models.

Trial and error showed us that if we manually fetched and re-put() the "broken" rows in our table (aka the ones that didn't show up when we used ORDER BY,) the indexes would right themselves. So I wrote a bit of code to do this, and started running a cron job on a local box to invoke that code regularly. Lame, but only temporary.

Last time we exchanged mail with the AppEngine team, they told us they were aware that this was a bug on their end and were working on a fix. However, to my knowledge, they're still working on it...

Re:Is Google App Engine Ready for Prime Time? by litewulf on Friday January 02, 2009 @05:28PM (#417824)
Good Lord thats scary sounding.

I believe the app engine datastore has been stated as being built upon bigtable. I suppose the index creation is "newer" code than the core of bigtable, but I'd like to hope that the Google bigtable code is bugfree at this point...

Re:Is Google App Engine Ready for Prime Time? by snprbob86 on Friday January 02, 2009 @07:17PM (#417927)
Nothing is ever bug free. The only thing the Big Table team can hope for is "statistically unlikely to contain a serious bug in the code paths commonly executed by our high traffic products".
Re:Is Google App Engine Ready for Prime Time? by davepeck on Friday January 02, 2009 @07:26PM (#417932)
True; on the other hand, you don't exit beta if you have a known data corruption bug.
Re:Is Google App Engine Ready for Prime Time? by vsiva68 on Friday January 02, 2009 @02:49PM (#417597)
Yup, I filed issue #901:

http://code.google.com/p/googleappengine/issues/detail?id=90...

Seems like a serious bug, but I haven't seen any updates as yet.

Re:Is Google App Engine Ready for Prime Time? by davepeck on Friday January 02, 2009 @02:58PM (#417613)
I got the impression we weren't the only ones. Good to see a bug filed, will star it!

Were you ever able to find an isolated repro case?