Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 99448 invoked from network); 24 Feb 2006 01:06:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Feb 2006 01:06:01 -0000 Received: (qmail 69472 invoked by uid 500); 24 Feb 2006 01:06:00 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 69448 invoked by uid 500); 24 Feb 2006 01:06:00 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 69439 invoked by uid 99); 24 Feb 2006 01:05:59 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Feb 2006 17:05:59 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 91F39DD for ; Fri, 24 Feb 2006 02:05:38 +0100 (CET) Message-ID: <1528213420.1140743138595.JavaMail.jira@ajax.apache.org> Date: Fri, 24 Feb 2006 02:05:38 +0100 (CET) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1044) [xa] client XAConnection.getConnection() does not have the correct default isolation level if set by an earlier connection obtained from the same XAConnection In-Reply-To: <1131270318.1140741338659.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1044?page=all ] Kathey Marsden updated DERBY-1044: ---------------------------------- Summary: [xa] client XAConnection.getConnection() does not have the correct default isolation level if set by an earlier connection obtained from the same XAConnection (was: [xa] client XAConnection.getConnection() does have the correct default isolation level if set by an earlier connection obtained from the same XAConnection) > [xa] client XAConnection.getConnection() does not have the correct default isolation level if set by an earlier connection obtained from the same XAConnection > ---------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-1044 > URL: http://issues.apache.org/jira/browse/DERBY-1044 > Project: Derby > Type: Bug > Components: Network Client > Versions: 10.1.2.3, 10.1.3.0, 10.2.0.0, 10.1.2.2 > Reporter: Kathey Marsden > Fix For: 10.1.2.3, 10.1.3.0, 10.2.0.0 > > If the isolation level is set on a connection obtained with XAConnection.getConnection() and then another connection is obtained from the same XAConnection, then the isolation will not be the default READ_COMMITTED but will be the isolation level set on the previous connection. > See this code in checkDataSource.java > I will add a reference to this bug > cs1 = xac.getConnection(); > printState("new handle - local ", cs1); > cs1.close(); > xar.start(xid, XAResource.TMJOIN); > cs1 = xac.getConnection(); > cs1.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ); > printState("pre-X1 commit - local", cs1); > xar.start(xid, XAResource.TMJOIN); > printState("pre-X1 commit - X1", cs1); > xar.end(xid, XAResource.TMSUCCESS); > printState("post-X1 end - local", cs1); > xar.commit(xid, true); > printState("post-X1 commit - local", cs1); > cs1.close(); > System.out.println("Some more isolation testing using SQL and JDBC api"); > // The initial isolation level for this connection is REPEATABLE_READ. Left over from the last connection. > // It should be READ_COMMITTED > cs1 = xac.getConnection(); > s = cs1.createStatement(); > printState("initial local", cs1); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira