db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dag H. Wanvik (JIRA)" <j...@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
Date Mon, 28 Mar 2011 23:23:05 GMT

     [ https://issues.apache.org/jira/browse/DERBY-5152?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dag H. Wanvik updated DERBY-5152:
---------------------------------

    Attachment: derby-5152-b.diff

> 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-b.diff, derby-5152-b.stat, 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

Mime
View raw message