|
|
|
|
Re: [CDO] Concurrent accesses and ObjectNotFoundException [message #1699541 is a reply to message #1699077] |
Wed, 24 June 2015 18:13   |
Eclipse User |
|
|
|
Hi Eike,
Thanks for your explanations.
I've just discovered the serializeCommits settings on server side.
To work with CDOMergingConflictREsolver, is it recommended to set it to true on server side with a mem store bad server ?
Thanks,
Stephane.
Eike Stepper wrote on Sat, 20 June 2015 08:18Am 20.06.2015 um 10:01 schrieb Stephane Fournier:
> Hi Eike,
>
> thanks again for your quick answer.
>
> I have already experiences how to lock objects with CDOAutoLocker handler but I don't know how to do quite the same
> thing at read time without explicitly doing :
>
> CDOLock cdoReadLock = company.cdoReadLock();
> cdoReadLock.lock(timeout);
>
> ...
> ..
> cdoReadLock.unlock();
>
> everywhere in the application code.
Locking is a pretty heavy mechanism in terms of signaling, too. Maybe you're better of by expecting respective
exceptions and handling them more gracefully, e.g. do the read again.
>
> By the way, if client A (JVM 1) uses CDOAutoLocker whereas client B (JVM 2) holds a ReadLock, client A trying to
> modify the same objects, will be blocked in the CDOAutoLocker until the client B has released its READ Lock ?
Yes.
> What happens if the client B JVM crashes ? the read lock is stil there ?
No, all locks are owned by the locking view/transaction and are released when that view/transaction is closed (for
whatever reason).
Please note that especially in this area I fixed some bugs for CDO 4.4.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
|
|
Re: [CDO] Concurrent accesses and ObjectNotFoundException [message #1701696 is a reply to message #1700213] |
Wed, 15 July 2015 01:57  |
Eclipse User |
|
|
|
Am 30.06.2015 um 22:08 schrieb Stephane Fournier:
> Hi Eike,
> bad is the result of the auto-correction on OS X :)
>
> if the serializeCommits is enabled, I understand the commit operations are put in a FIFO queue to process them one
> after one.
Yes.
> If the serializeCommits is disabled, how the commit operations are processed ?
Concurrently with locks on the changed objects (and some more objects, depending on referential integrity needs).
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
>
> Thanks,
> Stéphane.
>
> Eike Stepper wrote on Tue, 30 June 2015 01:10
>> Am 25.06.2015 um 00:13 schrieb Stephane Fournier:
>> > Hi Eike,
>> > Thanks for your explanations.
>> >
>> > I've just discovered the serializeCommits settings on server side.
>> > To work with CDOMergingConflictREsolver, is it recommended to set it to true on server side I don't think that's
>> related.
>>
>> > with a mem store bad server ?
>> What is a bad server?
>>
>> Cheers
>> /Eike
>>
>> ----
>> http://www.esc-net.de
>> http://thegordian.blogspot.com
>> http://twitter.com/eikestepper
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.06715 seconds