Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 47565 invoked from network); 22 Apr 2010 16:46:15 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Apr 2010 16:46:15 -0000 Received: (qmail 3331 invoked by uid 500); 22 Apr 2010 16:46:14 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 3306 invoked by uid 500); 22 Apr 2010 16:46:14 -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 3299 invoked by uid 99); 22 Apr 2010 16:46:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 16:46:14 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Apr 2010 16:46:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o3MGjo2G017462 for ; Thu, 22 Apr 2010 16:45:50 GMT Message-ID: <23423384.141581271954750423.JavaMail.jira@thor> Date: Thu, 22 Apr 2010 12:45:50 -0400 (EDT) From: "Lily Wei (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4314) With derby client setTransactionIsolation executes and commits even if isolation has not changed In-Reply-To: <1870676010.1247863574804.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-4314?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859879#action_12859879 ] Lily Wei commented on DERBY-4314: --------------------------------- Thank you, Knut. You are right. The repro is passing with 6b. I did not merge right after Connection.java has newer version. However, I am still seeing J2EEDataSourceTest exception from DERBY-1325 repro. I am seeing exception as following: 1) testSetIsolationWithStatement(org.apache.derbyTesting.functionTests.tests.jdb capi.J2EEDataSourceTest)org.apache.derby.client.am.XaException: XAER_DUPID : Err or executing a XAResource.start(), server returned XAER_DUPID. at org.apache.derby.client.net.NetXAResource.throwXAException(NetXAResou rce.java:756) at org.apache.derby.client.net.NetXAResource.start(NetXAResource.java:64 7) at org.apache.derbyTesting.functionTests.tests.jdbcapi.J2EEDataSourceTes t.testSetIsolationWithStatement(J2EEDataSourceTest.java:1623) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at org.apache.derbyTesting.junit.BaseTestCase.runBare(BaseTestCase.java: 109) I am thinking this is related to piggy backing of session data. However, I am all open to new suggestion. > With derby client setTransactionIsolation executes and commits even if isolation has not changed > ------------------------------------------------------------------------------------------------- > > Key: DERBY-4314 > URL: https://issues.apache.org/jira/browse/DERBY-4314 > Project: Derby > Issue Type: Improvement > Components: JDBC, Network Client > Affects Versions: 10.1.3.1, 10.2.2.0, 10.3.3.0, 10.4.2.0, 10.5.1.1, 10.6.0.0 > Reporter: Kathey Marsden > Priority: Minor > Attachments: DERBY-4314-2.diff, DERBY-4314-3.diff, DERBY-4314-5.diff, derby-4314-6a-initial_piggybacking.diff, derby-4314-6a-initial_piggybacking.stat, DERBY-4314-6b-combinepiggybacking.diff, DERBY-4314.diff, TestConnReuse.java > > > With in EmbedConnection.setIsolation() we have a check to see if the isolation level is the same and if so just return without doing a commit: > public void setTransactionIsolation(int level) throws SQLException { > if (level == getTransactionIsolation()) > return; > with org.apache.derby.client.am.Connection we have no such check. It would be good if the client driver acted like embedded. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.