jackrabbit-oak-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@adobe.com>
Subject Re: Session concurrency warning
Date Fri, 11 Apr 2014 22:10:11 GMT
On 10.04.2014, at 01:44, Michael Dürig <mduerig@apache.org> wrote:

>> So when 2 threads use the same session for read operations, then you
>> get another warning ("concurrent access")?
> Right but only at debug level.
>> If the threads are synchronized, so one finishes its session
>> operations, then the other thread uses it (not in parallel), and when
>> that other thread has finished, the first one again reads from the
>> session, would you get a warning then? AFAIC, the messages are
>> triggered only when it has to wait for another thread.
> Exactly. Each operation tries to acquire a lock and logs a warning if it fails before
eventually blocking on that lock:

Ok, thanks for the info. Then I know that my code is messed up :)


View raw message