Suppose you have two threads calling your code snippet below, both
trying to update the same entity. The first thread to call commit() in
your transaction wins. The second thread will throw a
ConcurrentModificationException upon calling commit().
I created a live demonstration to understand this
, the end result will be the same.
Doesn't that mean I can still get a ConcurrentModificationException
even if the write was/will be successful? And if so then that example
I outlined could still be possible?
Thanks
On Dec 14, 4:43 pm, Broc Seib broc.s...@gmail.com wrote:
I think you
I think you are mistaken about ConcurrentModificationException meaning
it will eventually commit.
If you get a ConcurrentModificationException, then that means the
entity *failed* to write (because another write has modified the
update timestamp on that entity group). You must catch that
Erick,
A while back the API changed to use with() functions, and I'm sure
they did not catch all the docs that needed updated. You should file
an issue here for fixing the documentation and someone will eventually
get to it: http://code.google.com/p/googleappengine/issues/list
Broc
On Nov
You will not have the delay if you query for your data with an
ancestor query. This page explains:
http://code.google.com/appengine/docs/java/datastore/hr/overview.html
Ancestor queries work because entity groups are a unit of
consistency: all operations are applied to the entire group. Ancestor
There's this thread:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/8c8d3191d287553f
Might I add, I wrestled with using JDO for several months before I
realized it was just not a good fit for AppEngine's DataStore. I
switched to Objectify and life has been much better
Hi Eliot,
Short answer: When asked for what domain, I think you need to enter
domain.com, not dev.domain.com. The next page is where you get to
specify the hostname.
Broc
For the longer answer, I thought I'd share some of the other subtle
things I learned by trial and error when going down
It may require a bit of typing (one time), but may I suggest just
explicitly scheduling each of the 14 cron jobs, staggered
appropriately. Use the following variety of syntax to specify the
schedule:
every N (hours|mins|minutes) [from (time) to (time)]
(from
Here are some thoughts:
With respect to segregating your data for each brand, you can read a bit
about DataStore and Multitenancy here:
http://code.google.com/appengine/docs/java/multitenancy/overview.html
I also know that when your are a paying Google Apps customer, you can add
domain aliases
I've been through the blobstore overview and API docs (for Java) and I can't
see how to query the blobstore meta data.
I want to delete all blobstore items older than a particular date. Seems
like a normal thing to want to do. I can see all the dates, etc when I view
from the /_ah/admin/ tool,
Aurel,
JAXB on AppEngine has been slow for me as well, and causes me pain. In my
case the Google Checkout SDK uses JAXB, and it causes problems when using
Google Checkout with App Engine (yikes -- two Google products not getting
along!). I described my problem
Check out this other
thread:
http://code.google.com/appengine/forum/?place=topic%2Fgoogle-appengine%2FazhX_BKiNiE%2Fdiscussion
There is mention of using Amazon's SES with more success.
-broc
--
You received this message because you are subscribed to the Google Groups
Google App Engine
Hi all,
I wrote up a solution which uses mod_proxy rather than mod_jk. It is
here: http://blog.broc.seib.net/2011/03/fronting-eclipse-jetty-server-with.html
Broc
--
You received this message because you are subscribed to the Google Groups
Google App Engine for Java group.
To post to this
made was about fifteen minutes ago, i.e.
12:09AM 9/30/2010 EST. I got another 403 error in my deploy logs.
I was also going to try to manually send a war file up using appcfg,
but I can't seem to export a war file out of eclipse for this type of
project...
Broc
On Sep 29, 10:21 pm, Broc
Hi,
In the last 24 ~ 48 hours, I have no longer been able to deploy apps to
my app engine account. I get error Unable to update app: Unknown.
To be specific, I right-click my project in Eclipse, choose Google in
the menu, and Deploy to App Engine in the sub-menu. I supply my id
You should write you code to expect the data store to be read-only on
occasion. You ought to at least expect the scheduled maintenance
periods.
Two tips to stay informed of these:
1) You can add the scheduled downtimes to your calendar: iCal
16 matches
Mail list logo