Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 95976 invoked from network); 13 Jun 2007 12:50:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jun 2007 12:50:47 -0000 Received: (qmail 45362 invoked by uid 500); 13 Jun 2007 12:50:51 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 45146 invoked by uid 500); 13 Jun 2007 12:50:50 -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 45135 invoked by uid 99); 13 Jun 2007 12:50:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 05:50:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 05:50:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 22779714187 for ; Wed, 13 Jun 2007 05:50:26 -0700 (PDT) Message-ID: <12386170.1181739026137.JavaMail.jira@brutus> Date: Wed, 13 Jun 2007 05:50:26 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-2432) Unimplemented transaction time out for XA transactions may cause that locks will not be released when client terminates outside a unit of work. In-Reply-To: <20978358.1173456609289.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-2432?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12504218 ] Knut Anders Hatlen commented on DERBY-2432: ------------------------------------------- I looked at the v2 patch. Some additional comments: I think Monitor.logThrowable() could be simpler: t.printStackTrace(getStream().getPrintWriter()); The tranState variable in CancelXATransactionTask is not used. I believe the synchronization in CancelXATransactionTask.run() is not necessary as this method is the only one that uses that synchronization object, and its only call is to a synchronized method anyway. > Unimplemented transaction time out for XA transactions may cause that locks will not be released when client terminates outside a unit of work. > ----------------------------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-2432 > URL: https://issues.apache.org/jira/browse/DERBY-2432 > Project: Derby > Issue Type: New Feature > Components: JDBC > Reporter: Julius Stroffek > Assignee: Julius Stroffek > Fix For: 10.3.0.0 > > Attachments: d2432.diff, d2432.stat, d2432_v2.diff, d2432_v2.stat, description.txt > > > The XAResource interface provides function setTransactionTimeout which is currently not supported in derby. > When client application uses client driver to connect to derby database and the application crashes outside the unit of work of XA transaction and the transaction is not committed or rolled back yet the locks held by the transaction will not be released. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.