Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 44406 invoked from network); 9 Dec 2008 01:02:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Dec 2008 01:02:08 -0000 Received: (qmail 1574 invoked by uid 500); 9 Dec 2008 01:02:19 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 1548 invoked by uid 500); 9 Dec 2008 01:02:19 -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 1537 invoked by uid 99); 9 Dec 2008 01:02:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Dec 2008 17:02:19 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Dec 2008 01:02:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 70870234C348 for ; Mon, 8 Dec 2008 17:01:44 -0800 (PST) Message-ID: <259072576.1228784504459.JavaMail.jira@brutus> Date: Mon, 8 Dec 2008 17:01:44 -0800 (PST) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-3980) Conflicting select then update with REPEATABLE_READ gives lock timeout instead of deadlock MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Conflicting select then update with REPEATABLE_READ gives lock timeout instead of deadlock ------------------------------------------------------------------------------------------ Key: DERBY-3980 URL: https://issues.apache.org/jira/browse/DERBY-3980 Project: Derby Issue Type: Bug Components: Store Affects Versions: 10.4.2.0, 10.3.3.0, 10.2.2.0, 10.1.3.1, 10.5.0.0 Reporter: Kathey Marsden Attachments: derby.log, TryTimeout.java The attached program TryTimeout.java should detect a deadlock but instead throws a lock timeout exception. The program has two threads that attempt: threadConnection.setAutoCommit(false); /* set isolation level to repeatable read */ threadConnection.setTransactionIsolation(Connection.TRANSACTION_REPEATABLE_READ); ResultSet rs = stmt.executeQuery("select * from t where i = 456"); while (rs.next()); stmt.executeUpdate("update t set i = 456 where i = 456"); threadConnection.commit(); This gives SQLState 40001 (deadlock) with DB2 but a lock timeout with Derby. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.