Issue Details (XML | Word | Printable)

Key: JDO-259
Type: Test Test
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Craig Russell
Reporter: Michelle Caisse
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JDO

Write tests for new persistent-nontransactional-dirty behavior assertions

Created: 10/Dec/05 09:58 AM   Updated: 17/Mar/06 09:13 AM
Return to search
Component/s: tck2
Affects Version/s: JDO 2 beta
Fix Version/s: JDO 2 final

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File Licensed for inclusion in ASF works NontransactionalWriteDatastoreCommit.java 2006-03-14 08:27 AM Craig Russell 3 kB
Java Source File Licensed for inclusion in ASF works NontransactionalWriteDatastoreCommitConflict.java 2006-03-14 08:27 AM Craig Russell 3 kB
Java Source File Licensed for inclusion in ASF works NontransactionalWriteDatastoreRollback.java 2006-03-14 08:27 AM Craig Russell 3 kB
Java Source File Licensed for inclusion in ASF works NontransactionalWriteOptimisticCommit.java 2006-03-14 08:28 AM Craig Russell 3 kB
Java Source File Licensed for inclusion in ASF works NontransactionalWriteOptimisticCommitConflict.java 2006-03-14 08:28 AM Craig Russell 3 kB
Java Source File Licensed for inclusion in ASF works NontransactionalWriteOptimisticRollback.java 2006-03-14 08:28 AM Craig Russell 3 kB
Java Source File Licensed for inclusion in ASF works NontransactionalWriteTest.java 2006-03-14 08:27 AM Craig Russell 7 kB
Java Source File Licensed for inclusion in ASF works NontransactionalWriteThrows.java 2006-03-14 08:27 AM Craig Russell 3 kB

Resolution Date: 17/Mar/06 09:13 AM


 Description  « Hide
A5.6.2-4 [If a datastore transaction is begun, commit will write the changes to the datastore with no checking as to the current state of the instances in the datastore. That is, the changes made outside the transaction together with any changes made inside the transaction will overwrite the current state of the datastore.]

A5.6.2-6 [If a datastore transaction is begun, rollback will not write any changes to the datastore.]

A5.6.2-8 [If an optimistic transaction is begun, commit will write the changes to the datastore after checking as to the current state of the instances in the datastore. The changes made outside the transaction together with any changes made inside the transaction will update the current state of the datastore if the version checking is successful.]

A5.6.2-10 [If an optimistic transaction is begun, rollback will not write any changes to the datastore. The persistent-nontransactional-dirty instances will transition according to the RestoreValues flag. ]



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Matthew T. Adams made changes - 05/Jan/06 03:05 AM
Field Original Value New Value
Assignee Matthew T. Adams [ matthewadams ]
Matthew T. Adams added a comment - 05/Jan/06 03:13 AM
I'm not sure that I see how these assertions have anything to do with attach/detach behaviors. They appear to be more related to the persistent-nontransactional-dirty state. The sections directly relevant to attach/detach are "5.5.8 Detached-clean", "5.5.9 Detached-dirty", and "12.6.8 Detaching and attaching instances".

I'll resolve this issue as "won't fix" and create a new issue for the sections listed above.

Matthew T. Adams added a comment - 05/Jan/06 03:14 AM
As per previous comment.

Matthew T. Adams made changes - 05/Jan/06 03:14 AM
Resolution Won't Fix [ 2 ]
Status Open [ 1 ] Resolved [ 5 ]
Michael Bouschen added a comment - 07/Jan/06 02:23 AM
Reopened.
The title is misleading: it talks about detach/attach where the issue is about persistent-nontransactional-dirty.

Michael Bouschen made changes - 07/Jan/06 02:23 AM
Resolution Won't Fix [ 2 ]
Status Resolved [ 5 ] Reopened [ 4 ]
Michael Bouschen made changes - 07/Jan/06 02:24 AM
Summary Write tests for attach/detach behavior assertions Write tests for new persistent-nontransactional-dirty behavior assertions
Craig Russell made changes - 07/Jan/06 08:42 AM
Assignee Matthew T. Adams [ matthewadams ]
Craig Russell made changes - 04/Feb/06 04:27 AM
Fix Version/s JDO 2 rc1 [ 12310771 ]
Affects Version/s JDO 2 beta [ 12310683 ]
Craig Russell made changes - 04/Feb/06 04:44 AM
Type New Feature [ 2 ] Test [ 6 ]
Craig Russell made changes - 25/Feb/06 07:41 AM
Fix Version/s JDO 2 rc1 [ 12310771 ]
Fix Version/s JDO 2 final [ 12310830 ]
Craig Russell made changes - 10/Mar/06 10:09 AM
Assignee Craig Russell [ clr ]
Craig Russell made changes - 10/Mar/06 10:09 AM
Status Reopened [ 4 ] In Progress [ 3 ]
Craig Russell added a comment - 10/Mar/06 10:11 AM
The existing test org.apache.jdo.tck.lifecycle.nontransactionalModificationOfNontransactionalInstanceOutsideTransaction checks the assertion from JDO1:
* With <code>NontransactionalWrite</code> set to <code>true</code>,
 * modification of nontransactional persistent instances is permitted outside
 * a transaction. The changes do not participate in any subsequent transaction.

This test will be modified for JDO2.

Craig Russell added a comment - 14/Mar/06 08:27 AM
These tests run on JPOX, but JPOX doesn't support NontransactionalWrite. In case there is an issue with one of the tests, I've split the tests into multiple test classes.

Craig Russell made changes - 14/Mar/06 08:27 AM
Attachment NontransactionalWriteDatastoreCommit.java [ 12324124 ]
Attachment NontransactionalWriteTest.java [ 12324122 ]
Attachment NontransactionalWriteThrows.java [ 12324123 ]
Craig Russell made changes - 14/Mar/06 08:27 AM
Craig Russell made changes - 14/Mar/06 08:28 AM
Repository Revision Date User Message
ASF #386502 Fri Mar 17 01:13:10 UTC 2006 clr JDO-259 Added new NontransactionalWrite tests; removed the old test
Files Changed
ADD /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/lifecycle/NontransactionalWriteDatastoreCommitConflict.java
ADD /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/lifecycle/NontransactionalWriteThrows.java
ADD /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/lifecycle/NontransactionalWriteDatastoreCommit.java
ADD /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/lifecycle/NontransactionalWriteDatastoreRollback.java
ADD /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/lifecycle/NontransactionalWriteOptimisticCommitConflict.java
ADD /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/lifecycle/NontransactionalWriteOptimisticCommit.java
MODIFY /db/jdo/trunk/tck20/src/conf/lifecycle.conf
ADD /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/lifecycle/NontransactionalWriteTest.java
DEL /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/lifecycle/nontransactional
ADD /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/lifecycle/NontransactionalWriteOptimisticRollback.java

Repository Revision Date User Message
ASF #386514 Fri Mar 17 03:06:59 UTC 2006 clr JDO-259 removed reference to org.apache.jdo.lifecycle.nontransactional
Files Changed
MODIFY /db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/lifecycle/NontransactionalWriteDatastoreCommit.java

Craig Russell added a comment - 17/Mar/06 09:13 AM
svn commit -m "JDO-259 Added new NontransactionalWrite tests; removed the old test" src/java/org/apache/jdo/tck/lifecycle/NontransactionalWrite* src/java/org/apache/jdo/tck/lifecycle/nontransactional src/java/org/apache/jdo/tck/lifecycle/nontransactional/ModificationOfNontransactionalInstanceOutsideTransaction.java src/conf/lifecycle.conf
Sending src/conf/lifecycle.conf
Adding src/java/org/apache/jdo/tck/lifecycle/NontransactionalWriteDatastoreCommit.java
Adding src/java/org/apache/jdo/tck/lifecycle/NontransactionalWriteDatastoreCommitConflict.java
Adding src/java/org/apache/jdo/tck/lifecycle/NontransactionalWriteDatastoreRollback.java
Adding src/java/org/apache/jdo/tck/lifecycle/NontransactionalWriteOptimisticCommit.java
Adding src/java/org/apache/jdo/tck/lifecycle/NontransactionalWriteOptimisticCommitConflict.java
Adding src/java/org/apache/jdo/tck/lifecycle/NontransactionalWriteOptimisticRollback.java
Adding src/java/org/apache/jdo/tck/lifecycle/NontransactionalWriteTest.java
Adding src/java/org/apache/jdo/tck/lifecycle/NontransactionalWriteThrows.java
Deleting src/java/org/apache/jdo/tck/lifecycle/nontransactional
Transmitting file data .........
Committed revision 386502.

Craig Russell made changes - 17/Mar/06 09:13 AM
Resolution Fixed [ 1 ]
Status In Progress [ 3 ] Resolved [ 5 ]