You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Dag H. Wanvik (JIRA)" <ji...@apache.org> on 2010/11/23 23:26:15 UTC

[jira] Created: (DERBY-4911) restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown

restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown
----------------------------------------------------------------------------------------------------------

                 Key: DERBY-4911
                 URL: https://issues.apache.org/jira/browse/DERBY-4911
             Project: Derby
          Issue Type: Bug
    Affects Versions: 10.7.1.0, 10.8.0.0
            Reporter: Dag H. Wanvik



Exception in thread "DRDAConnThread_508"
org.apache.derby.iapi.error.ShutdownException:
   at org.apache.derby.iapi.services.context.ContextManager.checkInterrupt(ContextManager.java:437)
   at org.apache.derby.iapi.services.context.ContextManager.getContext(ContextManager.java:155)
   at org.apache.derby.iapi.services.context.ContextService.getContextOrNull(ContextService.java:249)
   at org.apache.derby.iapi.util.InterruptStatus.restoreIntrFlagIfSeen(InterruptStatus.java:158)
   at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:356)
   at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2284)
   at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82)
   at org.apache.derby.impl.jdbc.EmbedPreparedStatement.closeActions(EmbedPreparedStatement.java:261)
   at org.apache.derby.impl.jdbc.EmbedStatement.close(EmbedStatement.java:307)
   at org.apache.derby.impl.drda.DRDAStatement.close(DRDAStatement.java:1027)
   at org.apache.derby.impl.drda.Database.close(Database.java:364)
   at org.apache.derby.impl.drda.Session.close(Session.java:115)
   at org.apache.derby.impl.drda.DRDAConnThread.closeSession(DRDAConnThread.java:8289)
   at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:315)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DERBY-4911) restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935162#action_12935162 ] 

Rick Hillegas commented on DERBY-4911:
--------------------------------------

Tests ran cleanly for me (except for the ping test, which regularly fails on my machine). I did not see the exception on the console this time.

> restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4911
>                 URL: https://issues.apache.org/jira/browse/DERBY-4911
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.7.1.0, 10.8.0.0
>            Reporter: Dag H. Wanvik
>         Attachments: derby-4911-a.diff
>
>
> Exception in thread "DRDAConnThread_508"
> org.apache.derby.iapi.error.ShutdownException:
>    at org.apache.derby.iapi.services.context.ContextManager.checkInterrupt(ContextManager.java:437)
>    at org.apache.derby.iapi.services.context.ContextManager.getContext(ContextManager.java:155)
>    at org.apache.derby.iapi.services.context.ContextService.getContextOrNull(ContextService.java:249)
>    at org.apache.derby.iapi.util.InterruptStatus.restoreIntrFlagIfSeen(InterruptStatus.java:158)
>    at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:356)
>    at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2284)
>    at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82)
>    at org.apache.derby.impl.jdbc.EmbedPreparedStatement.closeActions(EmbedPreparedStatement.java:261)
>    at org.apache.derby.impl.jdbc.EmbedStatement.close(EmbedStatement.java:307)
>    at org.apache.derby.impl.drda.DRDAStatement.close(DRDAStatement.java:1027)
>    at org.apache.derby.impl.drda.Database.close(Database.java:364)
>    at org.apache.derby.impl.drda.Session.close(Session.java:115)
>    at org.apache.derby.impl.drda.DRDAConnThread.closeSession(DRDAConnThread.java:8289)
>    at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:315)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DERBY-4911) restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Component/s: Store
                 Network Server

> restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4911
>                 URL: https://issues.apache.org/jira/browse/DERBY-4911
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Server, Store
>    Affects Versions: 10.7.1.1, 10.8.0.0
>            Reporter: Dag H. Wanvik
>            Assignee: Dag H. Wanvik
>             Fix For: 10.7.1.1, 10.8.0.0
>
>         Attachments: derby-4911-a.diff
>
>
> Exception in thread "DRDAConnThread_508"
> org.apache.derby.iapi.error.ShutdownException:
>    at org.apache.derby.iapi.services.context.ContextManager.checkInterrupt(ContextManager.java:437)
>    at org.apache.derby.iapi.services.context.ContextManager.getContext(ContextManager.java:155)
>    at org.apache.derby.iapi.services.context.ContextService.getContextOrNull(ContextService.java:249)
>    at org.apache.derby.iapi.util.InterruptStatus.restoreIntrFlagIfSeen(InterruptStatus.java:158)
>    at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:356)
>    at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2284)
>    at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82)
>    at org.apache.derby.impl.jdbc.EmbedPreparedStatement.closeActions(EmbedPreparedStatement.java:261)
>    at org.apache.derby.impl.jdbc.EmbedStatement.close(EmbedStatement.java:307)
>    at org.apache.derby.impl.drda.DRDAStatement.close(DRDAStatement.java:1027)
>    at org.apache.derby.impl.drda.Database.close(Database.java:364)
>    at org.apache.derby.impl.drda.Session.close(Session.java:115)
>    at org.apache.derby.impl.drda.DRDAConnThread.closeSession(DRDAConnThread.java:8289)
>    at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:315)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DERBY-4911) restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown

Posted by "Knut Anders Hatlen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935393#action_12935393 ] 

Knut Anders Hatlen commented on DERBY-4911:
-------------------------------------------

I haven't been able to reproduce the issue with the patch either.

> restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4911
>                 URL: https://issues.apache.org/jira/browse/DERBY-4911
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.7.1.0, 10.8.0.0
>            Reporter: Dag H. Wanvik
>         Attachments: derby-4911-a.diff
>
>
> Exception in thread "DRDAConnThread_508"
> org.apache.derby.iapi.error.ShutdownException:
>    at org.apache.derby.iapi.services.context.ContextManager.checkInterrupt(ContextManager.java:437)
>    at org.apache.derby.iapi.services.context.ContextManager.getContext(ContextManager.java:155)
>    at org.apache.derby.iapi.services.context.ContextService.getContextOrNull(ContextService.java:249)
>    at org.apache.derby.iapi.util.InterruptStatus.restoreIntrFlagIfSeen(InterruptStatus.java:158)
>    at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:356)
>    at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2284)
>    at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82)
>    at org.apache.derby.impl.jdbc.EmbedPreparedStatement.closeActions(EmbedPreparedStatement.java:261)
>    at org.apache.derby.impl.jdbc.EmbedStatement.close(EmbedStatement.java:307)
>    at org.apache.derby.impl.drda.DRDAStatement.close(DRDAStatement.java:1027)
>    at org.apache.derby.impl.drda.Database.close(Database.java:364)
>    at org.apache.derby.impl.drda.Session.close(Session.java:115)
>    at org.apache.derby.impl.drda.DRDAConnThread.closeSession(DRDAConnThread.java:8289)
>    at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:315)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DERBY-4911) restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935087#action_12935087 ] 

Dag H. Wanvik commented on DERBY-4911:
--------------------------------------

I have studied this one for a bit; Rick saw this on trunk, Knut has
also seen it running a JRockit VM on 10.7 RC1, although on a different
test. The test doesn't really fail in either observation, but a stack
dump appears on the console.

Derby is shutting down for some reason, either due to a database level
error or a normal shutdown connect. Probably a server shutdown.

Another (I think) thread is closing down because DRDAConnThread has lost
contact with the client, cf the stack evidence. During closing the
session the thread calls activation.close from
EmbedPreparedStatement#closeActions but since the db is shut down, this
fails, causing a call to handleException. Since I have now inserted code
in handleException to restore interrupt flags (for the normal case, not
for this use case :), we go looking for the lcc:

   restoreIntrFlagIfSeen calls getContextOrNull

But the shutdown has already called notifyAllActiveThreads, which
interrupts session threads, and also marks the context manager for the
thread with "shutdown = true" (by calling CM#setInterrupted). This
trips up restoreIntrFlagIfSeen's call to getContextOrNull and you see
this exception being thrown on the console,
cf. DRDACinnThread#handleException which calls
server.consoleExceptionPrintTrace(e);


> restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4911
>                 URL: https://issues.apache.org/jira/browse/DERBY-4911
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.7.1.0, 10.8.0.0
>            Reporter: Dag H. Wanvik
>
> Exception in thread "DRDAConnThread_508"
> org.apache.derby.iapi.error.ShutdownException:
>    at org.apache.derby.iapi.services.context.ContextManager.checkInterrupt(ContextManager.java:437)
>    at org.apache.derby.iapi.services.context.ContextManager.getContext(ContextManager.java:155)
>    at org.apache.derby.iapi.services.context.ContextService.getContextOrNull(ContextService.java:249)
>    at org.apache.derby.iapi.util.InterruptStatus.restoreIntrFlagIfSeen(InterruptStatus.java:158)
>    at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:356)
>    at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2284)
>    at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82)
>    at org.apache.derby.impl.jdbc.EmbedPreparedStatement.closeActions(EmbedPreparedStatement.java:261)
>    at org.apache.derby.impl.jdbc.EmbedStatement.close(EmbedStatement.java:307)
>    at org.apache.derby.impl.drda.DRDAStatement.close(DRDAStatement.java:1027)
>    at org.apache.derby.impl.drda.Database.close(Database.java:364)
>    at org.apache.derby.impl.drda.Session.close(Session.java:115)
>    at org.apache.derby.impl.drda.DRDAConnThread.closeSession(DRDAConnThread.java:8289)
>    at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:315)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DERBY-4911) restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown

Posted by "Rick Hillegas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935116#action_12935116 ] 

Rick Hillegas commented on DERBY-4911:
--------------------------------------

Thanks, Dag. I'll run the tests and let you know what I see.

> restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4911
>                 URL: https://issues.apache.org/jira/browse/DERBY-4911
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.7.1.0, 10.8.0.0
>            Reporter: Dag H. Wanvik
>         Attachments: derby-4911-a.diff
>
>
> Exception in thread "DRDAConnThread_508"
> org.apache.derby.iapi.error.ShutdownException:
>    at org.apache.derby.iapi.services.context.ContextManager.checkInterrupt(ContextManager.java:437)
>    at org.apache.derby.iapi.services.context.ContextManager.getContext(ContextManager.java:155)
>    at org.apache.derby.iapi.services.context.ContextService.getContextOrNull(ContextService.java:249)
>    at org.apache.derby.iapi.util.InterruptStatus.restoreIntrFlagIfSeen(InterruptStatus.java:158)
>    at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:356)
>    at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2284)
>    at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82)
>    at org.apache.derby.impl.jdbc.EmbedPreparedStatement.closeActions(EmbedPreparedStatement.java:261)
>    at org.apache.derby.impl.jdbc.EmbedStatement.close(EmbedStatement.java:307)
>    at org.apache.derby.impl.drda.DRDAStatement.close(DRDAStatement.java:1027)
>    at org.apache.derby.impl.drda.Database.close(Database.java:364)
>    at org.apache.derby.impl.drda.Session.close(Session.java:115)
>    at org.apache.derby.impl.drda.DRDAConnThread.closeSession(DRDAConnThread.java:8289)
>    at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:315)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (DERBY-4911) restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

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

    Attachment: derby-4911-a.diff

Uploading a patch which makes restoreIntrFlagIfSeen ignore ShutdownException.
Running regressions. Knut or Rick, if you could test drive this on the environment on which you saw the error I would appreciate it! 

> restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4911
>                 URL: https://issues.apache.org/jira/browse/DERBY-4911
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.7.1.0, 10.8.0.0
>            Reporter: Dag H. Wanvik
>         Attachments: derby-4911-a.diff
>
>
> Exception in thread "DRDAConnThread_508"
> org.apache.derby.iapi.error.ShutdownException:
>    at org.apache.derby.iapi.services.context.ContextManager.checkInterrupt(ContextManager.java:437)
>    at org.apache.derby.iapi.services.context.ContextManager.getContext(ContextManager.java:155)
>    at org.apache.derby.iapi.services.context.ContextService.getContextOrNull(ContextService.java:249)
>    at org.apache.derby.iapi.util.InterruptStatus.restoreIntrFlagIfSeen(InterruptStatus.java:158)
>    at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:356)
>    at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2284)
>    at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82)
>    at org.apache.derby.impl.jdbc.EmbedPreparedStatement.closeActions(EmbedPreparedStatement.java:261)
>    at org.apache.derby.impl.jdbc.EmbedStatement.close(EmbedStatement.java:307)
>    at org.apache.derby.impl.drda.DRDAStatement.close(DRDAStatement.java:1027)
>    at org.apache.derby.impl.drda.Database.close(Database.java:364)
>    at org.apache.derby.impl.drda.Session.close(Session.java:115)
>    at org.apache.derby.impl.drda.DRDAConnThread.closeSession(DRDAConnThread.java:8289)
>    at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:315)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DERBY-4911) restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown

Posted by "Lily Wei (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935398#action_12935398 ] 

Lily Wei commented on DERBY-4911:
---------------------------------

I just run it on Windows with the patch. I did not see it either. Thanks so much for fixing this issue.

> restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4911
>                 URL: https://issues.apache.org/jira/browse/DERBY-4911
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.7.1.0, 10.8.0.0
>            Reporter: Dag H. Wanvik
>         Attachments: derby-4911-a.diff
>
>
> Exception in thread "DRDAConnThread_508"
> org.apache.derby.iapi.error.ShutdownException:
>    at org.apache.derby.iapi.services.context.ContextManager.checkInterrupt(ContextManager.java:437)
>    at org.apache.derby.iapi.services.context.ContextManager.getContext(ContextManager.java:155)
>    at org.apache.derby.iapi.services.context.ContextService.getContextOrNull(ContextService.java:249)
>    at org.apache.derby.iapi.util.InterruptStatus.restoreIntrFlagIfSeen(InterruptStatus.java:158)
>    at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:356)
>    at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2284)
>    at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82)
>    at org.apache.derby.impl.jdbc.EmbedPreparedStatement.closeActions(EmbedPreparedStatement.java:261)
>    at org.apache.derby.impl.jdbc.EmbedStatement.close(EmbedStatement.java:307)
>    at org.apache.derby.impl.drda.DRDAStatement.close(DRDAStatement.java:1027)
>    at org.apache.derby.impl.drda.Database.close(Database.java:364)
>    at org.apache.derby.impl.drda.Session.close(Session.java:115)
>    at org.apache.derby.impl.drda.DRDAConnThread.closeSession(DRDAConnThread.java:8289)
>    at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:315)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DERBY-4911) restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935174#action_12935174 ] 

Dag H. Wanvik commented on DERBY-4911:
--------------------------------------

Thanks, Rick. 
suitesAll ran cleanly for me too, but then, it also did earlier. I'll wait for Knut's tests as well, then commit it.


> restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4911
>                 URL: https://issues.apache.org/jira/browse/DERBY-4911
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.7.1.0, 10.8.0.0
>            Reporter: Dag H. Wanvik
>         Attachments: derby-4911-a.diff
>
>
> Exception in thread "DRDAConnThread_508"
> org.apache.derby.iapi.error.ShutdownException:
>    at org.apache.derby.iapi.services.context.ContextManager.checkInterrupt(ContextManager.java:437)
>    at org.apache.derby.iapi.services.context.ContextManager.getContext(ContextManager.java:155)
>    at org.apache.derby.iapi.services.context.ContextService.getContextOrNull(ContextService.java:249)
>    at org.apache.derby.iapi.util.InterruptStatus.restoreIntrFlagIfSeen(InterruptStatus.java:158)
>    at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:356)
>    at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2284)
>    at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82)
>    at org.apache.derby.impl.jdbc.EmbedPreparedStatement.closeActions(EmbedPreparedStatement.java:261)
>    at org.apache.derby.impl.jdbc.EmbedStatement.close(EmbedStatement.java:307)
>    at org.apache.derby.impl.drda.DRDAStatement.close(DRDAStatement.java:1027)
>    at org.apache.derby.impl.drda.Database.close(Database.java:364)
>    at org.apache.derby.impl.drda.Session.close(Session.java:115)
>    at org.apache.derby.impl.drda.DRDAConnThread.closeSession(DRDAConnThread.java:8289)
>    at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:315)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (DERBY-4911) restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dag H. Wanvik closed DERBY-4911.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 10.8.0.0
                   10.7.1.1

> restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4911
>                 URL: https://issues.apache.org/jira/browse/DERBY-4911
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.7.1.0, 10.8.0.0
>            Reporter: Dag H. Wanvik
>             Fix For: 10.7.1.1, 10.8.0.0
>
>         Attachments: derby-4911-a.diff
>
>
> Exception in thread "DRDAConnThread_508"
> org.apache.derby.iapi.error.ShutdownException:
>    at org.apache.derby.iapi.services.context.ContextManager.checkInterrupt(ContextManager.java:437)
>    at org.apache.derby.iapi.services.context.ContextManager.getContext(ContextManager.java:155)
>    at org.apache.derby.iapi.services.context.ContextService.getContextOrNull(ContextService.java:249)
>    at org.apache.derby.iapi.util.InterruptStatus.restoreIntrFlagIfSeen(InterruptStatus.java:158)
>    at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:356)
>    at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2284)
>    at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82)
>    at org.apache.derby.impl.jdbc.EmbedPreparedStatement.closeActions(EmbedPreparedStatement.java:261)
>    at org.apache.derby.impl.jdbc.EmbedStatement.close(EmbedStatement.java:307)
>    at org.apache.derby.impl.drda.DRDAStatement.close(DRDAStatement.java:1027)
>    at org.apache.derby.impl.drda.Database.close(Database.java:364)
>    at org.apache.derby.impl.drda.Session.close(Session.java:115)
>    at org.apache.derby.impl.drda.DRDAConnThread.closeSession(DRDAConnThread.java:8289)
>    at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:315)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (DERBY-4911) restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DERBY-4911?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12935485#action_12935485 ] 

Dag H. Wanvik commented on DERBY-4911:
--------------------------------------

Thanks for the help with testing this!

Committed to trunk as svn 1038813. Backported to 10.7 branch as svn 1038816, closing.


> restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4911
>                 URL: https://issues.apache.org/jira/browse/DERBY-4911
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.7.1.0, 10.8.0.0
>            Reporter: Dag H. Wanvik
>             Fix For: 10.7.1.1, 10.8.0.0
>
>         Attachments: derby-4911-a.diff
>
>
> Exception in thread "DRDAConnThread_508"
> org.apache.derby.iapi.error.ShutdownException:
>    at org.apache.derby.iapi.services.context.ContextManager.checkInterrupt(ContextManager.java:437)
>    at org.apache.derby.iapi.services.context.ContextManager.getContext(ContextManager.java:155)
>    at org.apache.derby.iapi.services.context.ContextService.getContextOrNull(ContextService.java:249)
>    at org.apache.derby.iapi.util.InterruptStatus.restoreIntrFlagIfSeen(InterruptStatus.java:158)
>    at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:356)
>    at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2284)
>    at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82)
>    at org.apache.derby.impl.jdbc.EmbedPreparedStatement.closeActions(EmbedPreparedStatement.java:261)
>    at org.apache.derby.impl.jdbc.EmbedStatement.close(EmbedStatement.java:307)
>    at org.apache.derby.impl.drda.DRDAStatement.close(DRDAStatement.java:1027)
>    at org.apache.derby.impl.drda.Database.close(Database.java:364)
>    at org.apache.derby.impl.drda.Session.close(Session.java:115)
>    at org.apache.derby.impl.drda.DRDAConnThread.closeSession(DRDAConnThread.java:8289)
>    at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:315)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (DERBY-4911) restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown

Posted by "Dag H. Wanvik (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DERBY-4911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dag H. Wanvik reassigned DERBY-4911:
------------------------------------

    Assignee: Dag H. Wanvik

> restoreIntrFlagIfSeen may throw ShutdownException causing confusing console stack trace at server shutdown
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4911
>                 URL: https://issues.apache.org/jira/browse/DERBY-4911
>             Project: Derby
>          Issue Type: Bug
>    Affects Versions: 10.7.1.0, 10.8.0.0
>            Reporter: Dag H. Wanvik
>            Assignee: Dag H. Wanvik
>             Fix For: 10.7.1.1, 10.8.0.0
>
>         Attachments: derby-4911-a.diff
>
>
> Exception in thread "DRDAConnThread_508"
> org.apache.derby.iapi.error.ShutdownException:
>    at org.apache.derby.iapi.services.context.ContextManager.checkInterrupt(ContextManager.java:437)
>    at org.apache.derby.iapi.services.context.ContextManager.getContext(ContextManager.java:155)
>    at org.apache.derby.iapi.services.context.ContextService.getContextOrNull(ContextService.java:249)
>    at org.apache.derby.iapi.util.InterruptStatus.restoreIntrFlagIfSeen(InterruptStatus.java:158)
>    at org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(TransactionResourceImpl.java:356)
>    at org.apache.derby.impl.jdbc.EmbedConnection.handleException(EmbedConnection.java:2284)
>    at org.apache.derby.impl.jdbc.ConnectionChild.handleException(ConnectionChild.java:82)
>    at org.apache.derby.impl.jdbc.EmbedPreparedStatement.closeActions(EmbedPreparedStatement.java:261)
>    at org.apache.derby.impl.jdbc.EmbedStatement.close(EmbedStatement.java:307)
>    at org.apache.derby.impl.drda.DRDAStatement.close(DRDAStatement.java:1027)
>    at org.apache.derby.impl.drda.Database.close(Database.java:364)
>    at org.apache.derby.impl.drda.Session.close(Session.java:115)
>    at org.apache.derby.impl.drda.DRDAConnThread.closeSession(DRDAConnThread.java:8289)
>    at org.apache.derby.impl.drda.DRDAConnThread.run(DRDAConnThread.java:315)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.