Issue Details (XML | Word | Printable)

Key: DERBY-638
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Bernt M. Johnsen
Reporter: Deepa Remesh
Votes: 0
Watchers: 0
Operations

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

Network driver setTransactionIsolation() causes a commit, but does not complete it locally

Created: 22/Oct/05 03:33 AM   Updated: 13/Dec/07 09:04 AM
Return to search
Component/s: Network Client
Affects Version/s: 10.1.3.1, 10.2.1.6, 10.3.1.4
Fix Version/s: 10.1.3.2, 10.2.2.0, 10.3.1.4

Time Tracking:
Not Specified

File Attachments:
  Size
Java Source File Licensed for inclusion in ASF works d638.java 2005-10-22 03:49 AM Deepa Remesh 1.0 kB
Java Source File Licensed for inclusion in ASF works d638_repro2.java 2006-11-08 05:15 PM Deepa Remesh 1 kB
Java Source File Licensed for inclusion in ASF works d638_repro3.java 2006-11-08 10:21 PM Bernt M. Johnsen 2 kB
File Licensed for inclusion in ASF works DERBY-638-v2.diff 2006-11-08 03:23 PM Bernt M. Johnsen 0.8 kB
File Licensed for inclusion in ASF works DERBY-638-v3-for-10.1.diff 2006-11-16 12:09 PM Bernt M. Johnsen 6 kB
File Licensed for inclusion in ASF works DERBY-638-v3.diff 2006-11-10 03:15 PM Bernt M. Johnsen 6 kB
File Licensed for inclusion in ASF works DERBY-638-v3.stat 2006-11-10 03:15 PM Bernt M. Johnsen 0.5 kB
File Licensed for inclusion in ASF works DERBY-638.diff 2006-11-07 03:04 PM Bernt M. Johnsen 0.7 kB
Issue Links:
Incorporates
 
Reference

Resolution Date: 16/Nov/06 12:24 PM


 Description  « Hide
When autocommit is set to false, a call to setTransactionIsolation using client driver does not end the transaction when the method exits. When a close() is called on the conection, it throws an exception.

Running the code below:

       conn.setAutoCommit(false);
       conn.setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
       try{
               conn.close();
       }catch(SQLException se){
               System.out.println("Got exception when closing the connection");
               se.printStackTrace();
       }

with client driver gives:
Got exception when closing the connection
org.apache.derby.client.am.SqlException: java.sql.Connection.close() requested while a transaction is in progress on the connection.The transaction remains active, and the connection cannot be closed.

with embedded driver, it works okay and does not throw any exception.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Deepa Remesh made changes - 22/Oct/05 03:50 AM
Field Original Value New Value
Attachment d638.java [ 12315033 ]
Deepa Remesh made changes - 22/Oct/05 04:10 AM
Link This issue is part of DERBY-310 [ DERBY-310 ]
Bernt M. Johnsen made changes - 07/Nov/06 01:01 PM
Assignee Bernt M. Johnsen [ bernt ]
Bernt M. Johnsen made changes - 07/Nov/06 03:04 PM
Attachment DERBY-638.diff [ 12344484 ]
Bernt M. Johnsen made changes - 07/Nov/06 03:04 PM
Derby Info [Patch Available]
Bernt M. Johnsen made changes - 08/Nov/06 03:23 PM
Attachment DERBY-638-v2.diff [ 12344589 ]
Bernt M. Johnsen made changes - 08/Nov/06 03:26 PM
Status Open [ 1 ] In Progress [ 3 ]
Deepa Remesh made changes - 08/Nov/06 05:15 PM
Attachment d638_repro2.java [ 12344603 ]
Bernt M. Johnsen made changes - 08/Nov/06 10:21 PM
Attachment d638_repro3.java [ 12344617 ]
Bernt M. Johnsen made changes - 09/Nov/06 08:48 AM
Summary setTransactionIsolation behaviour in network client driver is different from that of embedded driver Newtork driver setTransactionIsolation() causes a commit, but does not complete it locally
Bernt M. Johnsen made changes - 09/Nov/06 09:31 AM
Summary Newtork driver setTransactionIsolation() causes a commit, but does not complete it locally Network driver setTransactionIsolation() causes a commit, but does not complete it locally
Bernt M. Johnsen made changes - 10/Nov/06 10:41 AM
Link This issue relates to DERBY-2064 [ DERBY-2064 ]
Bernt M. Johnsen made changes - 10/Nov/06 03:15 PM
Attachment DERBY-638-v3.diff [ 12344762 ]
Attachment DERBY-638-v3.stat [ 12344763 ]
Bernt M. Johnsen made changes - 14/Nov/06 10:27 AM
Fix Version/s 10.3.0.0 [ 12310800 ]
Status In Progress [ 3 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Bernt M. Johnsen made changes - 14/Nov/06 12:35 PM
Affects Version/s 10.1.3.1 [ 12311953 ]
Affects Version/s 10.3.0.0 [ 12310800 ]
Bernt M. Johnsen made changes - 14/Nov/06 01:27 PM
Link This issue is related to DERBY-2084 [ DERBY-2084 ]
Bernt M. Johnsen made changes - 16/Nov/06 09:24 AM
Status Resolved [ 5 ] Reopened [ 4 ]
Resolution Fixed [ 1 ]
Bernt M. Johnsen made changes - 16/Nov/06 09:26 AM
Fix Version/s 10.2.1.8 [ 12312096 ]
Status Reopened [ 4 ] Resolved [ 5 ]
Fix Version/s 10.3.0.0 [ 12310800 ]
Resolution Fixed [ 1 ]
Bernt M. Johnsen made changes - 16/Nov/06 09:27 AM
Fix Version/s 10.3.0.0 [ 12310800 ]
Bernt M. Johnsen made changes - 16/Nov/06 12:09 PM
Attachment DERBY-638-v3-for-10.1.diff [ 12345119 ]
Bernt M. Johnsen made changes - 16/Nov/06 12:24 PM
Status Resolved [ 5 ] Reopened [ 4 ]
Resolution Fixed [ 1 ]
Bernt M. Johnsen made changes - 16/Nov/06 12:24 PM
Fix Version/s 10.1.3.2 [ 12311972 ]
Status Reopened [ 4 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Derby Info [Patch Available]
Andrew McIntyre made changes - 13/Dec/07 09:04 AM
Status Resolved [ 5 ] Closed [ 6 ]