[jbosscache-dev] JBoss Cache weakness handling heuristic transaction outcomes - [Fwd: [Fwd: New case comment notification. Case Number 00017677]]
Manik Surtani
manik at jboss.org
Wed Aug 22 06:26:15 EDT 2007
+1. So the controlling app - which would typically be a participant
in the tx anyway - would react to a STATUS_UNKNOWN by clearing the
cache of the nodes involved. The cache itself just treats
STATUS_UNKNOWN as a rollback.
On 21 Aug 2007, at 19:01, Jason T. Greene wrote:
> Manik Surtani wrote:
>> Ok, I just spoke to Steve @ Hibernate on how Hibernate deals with
>> this situation. From an IM conversation:
>> "that is deemed a failed transaction
>> anything other than committed"
>> So Hibernate rolls back STATUS_UNKNOWN as well. I think this is
>> therefore a safe default.
>> Is there a good reason to try and purge the nodes in such a case?
>> Or just stick with the default above?
>
> I think this makes more sense for the cache controlling application
> to be responsible for removing data. If you look at the hibernate
> case it does stuff outside the realm of the tx boundary anyway
> (putForExternalRead). So even if we did auto purge, it's not
> guaranteed that we are purging the correct data.
>
> --
> Jason T. Greene
> Lead, POJO Cache
> JBoss, a division of Red Hat
--
Manik Surtani
Lead, JBoss Cache
JBoss, a division of Red Hat
More information about the jbosscache-dev
mailing list