Issue Details (XML | Word | Printable)

Key: JDO-409
Type: Bug Bug
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Unassigned
Reporter: Marc Prud'hommeaux
Votes: 0
Watchers: 0
Operations

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

IsTransactionalFalse makes invalid assumption that transaction is optimistic

Created: 30/Aug/06 12:04 AM   Updated: 10/Sep/06 08:01 PM
Return to search
Component/s: tck2
Affects Version/s: JDO 2 final
Fix Version/s: None

Time Tracking:
Not Specified

Resolution Date: 10/Sep/06 08:01 PM


 Description  « Hide
The test IsTransactionalFalse.testIsTransactionalFalse mandates that an instance will be persistent-clean after a field is accessed in a transaction. However, when the transaction type is optimistic, it is also valid for the instance to be persistent-nontransactional after a field access.

The test can be fixed by ensuring that the transaction is a datastore transaction. E.g.:

    public void testIsTransactionalFalse() {
        pm = getPM();
        Transaction tx = pm.currentTransaction();
        tx.setOptimistic(false); // make sure the transaction is not optimisitic
        tx.begin();


 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Ilan Kirsh added a comment - 30/Aug/06 02:06 AM
I believe the title should be "IsTransactionalFalse makes invalid assumption that transaction is datastore" and that this issue duplicates JDO-400 that had already been fixed.

Marc Prud'hommeaux added a comment - 30/Aug/06 05:36 AM
You are correct about the title, and I agree that it is a duplicate. The fixed check in at http://svn.apache.org/repos/asf/db/jdo/trunk/tck20/src/java/org/apache/jdo/tck/api/jdohelper/IsTransactionalFalse.java looks correct to me.

Michael Bouschen added a comment - 10/Sep/06 08:01 PM
Closed as a duplicate of JDO-400.

Michael Bouschen made changes - 10/Sep/06 08:01 PM
Field Original Value New Value
Status Open [ 1 ] Closed [ 6 ]
Resolution Duplicate [ 3 ]