jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jukka Zitting <jukka.zitt...@gmail.com>
Subject Re: [jr3] Synchronized sessions
Date Fri, 26 Feb 2010 18:11:41 GMT
Hi,

On Fri, Feb 26, 2010 at 6:36 PM, Felix Meschberger <fmeschbe@gmail.com> wrote:
> Consider two threads T1 and T2 each modifying data from the same session:
>
>  T1 makes some modifications
>  T2 makes some modifications
>  T1 saves the session (incl. both T1's and T2's modifs)
>  T2 makes some more modifications
>  T2 decides to rollback
>
> At the end the content is inconsistent from the POV of T2 because some
> modifications have been persistent and some haven't.

This has nothing to do with synchronizing session access. If T2 wants
a separate transient space, it should use a separate session.

All we're trying to achieve here is ensure internal consistency even
when clients do something like the above (for whatever reason,
intentional or not).

BR,

Jukka Zitting

Mime
View raw message