Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 78858 invoked from network); 25 Mar 2011 16:30:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Mar 2011 16:30:46 -0000 Received: (qmail 3248 invoked by uid 500); 25 Mar 2011 16:30:45 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 3222 invoked by uid 500); 25 Mar 2011 16:30:45 -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 3208 invoked by uid 99); 25 Mar 2011 16:30:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2011 16:30:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Mar 2011 16:30:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E1AB54DA92 for ; Fri, 25 Mar 2011 16:30:05 +0000 (UTC) Date: Fri, 25 Mar 2011 16:30:05 +0000 (UTC) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Message-ID: <1282881277.11536.1301070605921.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1951818889.11112.1301058305726.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (DERBY-5152) Shutting down db, information that the thread received an interrupt will not be restored to thread's interrupt flag 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-5152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik updated DERBY-5152: --------------------------------- Issue & fix info: [Patch Available] > Shutting down db, information that the thread received an interrupt will not be restored to thread's interrupt flag > ------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-5152 > URL: https://issues.apache.org/jira/browse/DERBY-5152 > Project: Derby > Issue Type: Bug > Affects Versions: 10.8.0.0 > Reporter: Dag H. Wanvik > Assignee: Dag H. Wanvik > Priority: Minor > Attachments: derby-5152.diff, derby-5152.stat > > > When a thread receives an interrupt Derby detects this, it will reset the thread's flag and save the fact in its lcc (LanguageConnectionContext), if available. If not (e.g. during boot) it will save the information in a thread local variable. For performance reasons, we use the lcc when available. However, when shutting down the database, the lcc goers away, and when the JDBC call returns to the application, the thread's interrupt flag will not be reinstated as per our specification. This is because the lcc dies before we do the restoring (under shutdown). So, the information that the thread was interrupted is lost with the lcc going away. A possible solution is to move the flag over to the thread local variable when the lcc is popped, so that the restore code will find it. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira