[Cosmo-dev] Bug Roundup
Randy Letness
randy at osafoundation.org
Tue Oct 3 09:57:52 PDT 2006
Brian Moseley wrote:
> i want to know what will happen with hibernate in this situation, and
> i want to consider what is the right thing to tell client B - try
> again in a few minutes? server error?
>
In jcr cosmo, the root collection is dirtied when a resource is added.
In hibernate cosmo, only the resource is dirtied. This means a simultaneous
put of A and B to collection C will work no problem. The only problem
occurs when there is a simultaneous put of A and A...then the first put
to A wins, and the second will result in a stale-object exception, which
will ultimately lead to a 500 being returned. The probability of two
simultaneous puts to the same resource is pretty small, but it does exist.
-Randy
More information about the cosmo-dev
mailing list