Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 17027 invoked from network); 26 Jun 2010 18:11:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Jun 2010 18:11:13 -0000 Received: (qmail 72267 invoked by uid 500); 26 Jun 2010 18:11:13 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 72236 invoked by uid 500); 26 Jun 2010 18:11:12 -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 72229 invoked by uid 99); 26 Jun 2010 18:11:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Jun 2010 18:11:12 +0000 X-ASF-Spam-Status: No, hits=-1546.9 required=10.0 tests=ALL_TRUSTED,AWL 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; Sat, 26 Jun 2010 18:11:12 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5QIApGU029263 for ; Sat, 26 Jun 2010 18:10:51 GMT Message-ID: <28800448.75641277575851082.JavaMail.jira@thor> Date: Sat, 26 Jun 2010 14:10:51 -0400 (EDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-4711) Hung thread after another thread is interrupted In-Reply-To: <13759464.29011277336219330.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-4711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12882873#action_12882873 ] Knut Anders Hatlen commented on DERBY-4711: ------------------------------------------- I've committed the JUnit test case to trunk with revision 958264. > Hung thread after another thread is interrupted > ----------------------------------------------- > > Key: DERBY-4711 > URL: https://issues.apache.org/jira/browse/DERBY-4711 > Project: Derby > Issue Type: Bug > Components: Services > Affects Versions: 10.5.3.0 > Environment: Windows server 2008 > Reporter: Luke Quinane > Assignee: Luke Quinane > Fix For: 10.7.0.0 > > Attachments: interrupted-exception-fix.diff, interrupted-exception-fix.patch, junit.diff > > > We've seen a problem today where we have several threads querying our database and when one gets interrupted the others are stuck waiting for a lock. Here is the stack trace for the stuck thread(s): > daemon prio=4 > "DefaultExecutorService-pool-1-thread-47" Id=98 WAITING on org.apache.derby.impl.services.locks.ActiveLock@6e6f45a1 > at java.lang.Object.wait(Native Method) > - waiting on org.apache.derby.impl.services.locks.ActiveLock@6e6f45a1 > at java.lang.Object.wait(Object.java:485) > at org.apache.derby.impl.services.locks.ActiveLock.waitForGrant(ActiveLock.java:115) > at org.apache.derby.impl.services.locks.ConcurrentLockSet.lockObject(ConcurrentLockSet.java:463) > at org.apache.derby.impl.services.locks.ConcurrentLockSet.zeroDurationLockObject(ConcurrentLockSet.java:855) > at org.apache.derby.impl.services.locks.AbstractPool.zeroDurationlockObject(AbstractPool.java:297) > at org.apache.derby.impl.services.locks.ConcurrentPool.zeroDurationlockObject(ConcurrentPool.java:28) > at org.apache.derby.impl.store.raw.xact.RowLocking2nohold.lockRecordForRead(RowLocking2nohold.java:89) > at org.apache.derby.impl.store.access.heap.HeapController.lockRow(HeapController.java:520) > at org.apache.derby.impl.store.access.heap.HeapController.lockRow(HeapController.java:638) > at org.apache.derby.impl.store.access.btree.index.B2IRowLocking3.lockRowOnPage(B2IRowLocking3.java:309) > at org.apache.derby.impl.store.access.btree.index.B2IRowLocking3._lockScanRow(B2IRowLocking3.java:599) > at org.apache.derby.impl.store.access.btree.index.B2IRowLockingRR.lockScanRow(B2IRowLockingRR.java:105) > at org.apache.derby.impl.store.access.btree.BTreeForwardScan.fetchRows(BTreeForwardScan.java:305) > at org.apache.derby.impl.store.access.btree.BTreeScan.fetchNextGroup(BTreeScan.java:1585) > at org.apache.derby.impl.sql.execute.BulkTableScanResultSet.reloadArray(BulkTableScanResultSet.java:327) > at org.apache.derby.impl.sql.execute.BulkTableScanResultSet.getNextRowCore(BulkTableScanResultSet.java:282) > at org.apache.derby.impl.sql.execute.BasicNoPutResultSetImpl.getNextRow(BasicNoPutResultSetImpl.java:460) > at org.apache.derby.impl.jdbc.EmbedResultSet.movePosition(EmbedResultSet.java:427) > - locked org.apache.derby.impl.jdbc.EmbedConnection40@445d374b > at org.apache.derby.impl.jdbc.EmbedResultSet.next(EmbedResultSet.java:371) > ... -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.