-
1. Re: TreeCache 2.0 [CVS] - Bug in optimistic locking mode?
manik Jan 3, 2007 2:17 PM (in response to chasta)Yes, there were a few issues with the Node interfaces in ALPHA1. ALPHA2, which should be out very soon, has a number of changes in this department.
-
2. Re: TreeCache 2.0 [CVS] - Bug in optimistic locking mode?
chasta Jan 3, 2007 3:20 PM (in response to chasta)Great to hear that! However, I'm talking about the latest version from CVS (as of today) - so assuming the ALPHA2 changes have already been committed, this issue persists in the updated version...
Are these changes indeed yet to be committed? -
3. Re: TreeCache 2.0 [CVS] - Bug in optimistic locking mode?
manik Jan 3, 2007 6:12 PM (in response to chasta)Yes, they have. If you got these off CVS today, then it should be fixed. Will have a look.
-
4. Re: TreeCache 2.0 [CVS] - Bug in optimistic locking mode?
manik Jan 3, 2007 6:47 PM (in response to chasta)I see your problem. Note that this is specifically when checked within the same transaction. If you don't use transactions (I.e., allow optimistic locking to create implicit transactions) the problem isn't there.
Added some more unit tests to check this. See NodeAPITest and it's subclass, NodeAPIOptimisticTest. Two specific tests depict this: testAddingData() and testAddingDataTx(). -
5. Re: TreeCache 2.0 [CVS] - Bug in optimistic locking mode?
manik Jan 3, 2007 6:48 PM (in response to chasta)And regarding your comment about adding children, the bug exists there too (see testGetChildrenUnderTx() in the same test classes)
-
6. Re: TreeCache 2.0 [CVS] - Bug in optimistic locking mode?
manik Jan 3, 2007 8:53 PM (in response to chasta)FYI, I've fixed these and will check them into CVS after running a few more regressions.
-
7. Re: TreeCache 2.0 [CVS] - Bug in optimistic locking mode?
chasta Jan 4, 2007 2:18 PM (in response to chasta)Great! Thank you for the quick round-up.
I've taken a look at NodeAPITest (and NodeAPIOptimisticTest) and indeed, the problem is well tested there. -
8. Re: TreeCache 2.0 [CVS] - Bug in optimistic locking mode?
manik Jan 4, 2007 7:14 PM (in response to chasta)No worries.
Have you tried a new build from CVS? Does it solve your problem?