qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (QPID-6503) IllegalStateException can be reported on Broker shutdown due to an attempt to submit a configuration task into shutdown executor service
Date Mon, 20 Apr 2015 15:47:00 GMT

    [ https://issues.apache.org/jira/browse/QPID-6503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14503064#comment-14503064
] 

ASF subversion and git services commented on QPID-6503:
-------------------------------------------------------

Commit 1674936 from orudyy@apache.org in branch 'java/trunk'
[ https://svn.apache.org/r1674936 ]

QPID-6503: Improve Java broker shutdown:
           register shutdown hook before the startup in order to have consistent behaviour
on errorneous and normal shutdown
           wait for close in a separate thread in order to avoid blocking the configuration
thread when shutdown is called from configuration thread on running into errors in configured
objects

> IllegalStateException can be reported on Broker shutdown due to an attempt to submit
a configuration task into shutdown executor service
> ----------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-6503
>                 URL: https://issues.apache.org/jira/browse/QPID-6503
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>            Reporter: Alex Rudyy
>            Assignee: Alex Rudyy
>             Fix For: 6.0 [Java]
>
>
> Here are the stack traces for the issue reported whilst running the system tests
> {noformat}
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.074 sec - in org.apache.qpid.transport.MaxFrameSizeTest
> Thread terminated due to uncaught exceptionjava.lang.IllegalStateException: Task executor
is not in ACTIVE state
> 	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl.checkState(TaskExecutorImpl.java:308)
> 	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl.submit(TaskExecutorImpl.java:136)
> 	at org.apache.qpid.server.model.AbstractConfiguredObject.doOnConfigThread(AbstractConfiguredObject.java:498)
> 	at org.apache.qpid.server.model.AbstractConfiguredObject.closeAsync(AbstractConfiguredObject.java:644)
> 	at org.apache.qpid.server.Broker.shutdown(Broker.java:113)
> 	at org.apache.qpid.server.Broker.shutdown(Broker.java:97)
> 	at org.apache.qpid.server.Broker$ShutdownService$1.run(Broker.java:373)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAs(Subject.java:360)
> 	at org.apache.qpid.server.Broker$ShutdownService.run(Broker.java:367)
> 	at java.lang.Thread.run(Thread.java:745)
> {noformat}
> Another test
> {noformat}
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 sec - in org.apache.qpid.client.SyncPublishTest
> Thread terminated due to uncaught exceptionjava.lang.IllegalStateException: Task executor
is not in ACTIVE state
> 	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl.checkState(TaskExecutorImpl.java:308)
> 	at org.apache.qpid.server.configuration.updater.TaskExecutorImpl.submit(TaskExecutorImpl.java:136)
> 	at org.apache.qpid.server.model.AbstractConfiguredObject.doOnConfigThread(AbstractConfiguredObject.java:498)
> 	at org.apache.qpid.server.model.AbstractConfiguredObject.closeAsync(AbstractConfiguredObject.java:644)
> 	at org.apache.qpid.server.Broker.shutdown(Broker.java:113)
> 	at org.apache.qpid.server.Broker.shutdown(Broker.java:97)
> 	at org.apache.qpid.server.Broker$ShutdownService$1.run(Broker.java:373)
> 	at java.security.AccessController.doPrivileged(Native Method)
> 	at javax.security.auth.Subject.doAs(Subject.java:356)
> 	at org.apache.qpid.server.Broker$ShutdownService.run(Broker.java:367)
> 	at java.lang.Thread.run(Thread.java:724)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message