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

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

Commit b17141d37d4f0ebf701f83065b447d3e8d7d130e in qpid-broker-j's branch 
refs/heads/master from [~lorenz.quack]
[ https://git-wip-us.apache.org/repos/asf?p=qpid-broker-j.git;h=b17141d ]

QPID-7810: [Java Broker] Temporary workaround.

This might leave orphaned the LinkStore tables behind.


> [Java Broker] deleting Derby VHN with ProvidedStore VH throws 
> IllegalStateException
> -----------------------------------------------------------------------------------
>
>                 Key: QPID-7810
>                 URL: https://issues.apache.org/jira/browse/QPID-7810
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>            Reporter: Lorenz Quack
>
> Currently, when trying to delete a Derby VirtualHostNode that has a 
> VirtualHost using the ProvidedStore the broker throws an 
> IllegalStateException:
> {noformat}
> 2017-06-05 10:44:41,897 INFO  [VirtualHostNode-foo-Config] (q.m.v.closed) - 
> [mng:N/A(ANONYMOUS@/127.0.0.1:42186)] VHT-1002 : Closed : foo
> 2017-06-05 10:44:41,955 WARN  [VirtualHostNode-foo-Config] 
> (o.a.q.s.v.AbstractVirtualHost) - Exception occurred on message store deletion
> java.lang.IllegalStateException: Message store is not open
>       at 
> org.apache.qpid.server.store.derby.AbstractDerbyMessageStore.checkMessageStoreOpen(AbstractDerbyMessageStore.java:117)
>       at 
> org.apache.qpid.server.store.derby.DerbyConfigurationStore$ProvidedMessageStore.getConnection(DerbyConfigurationStore.java:211)
>       at 
> org.apache.qpid.server.store.jdbc.AbstractJDBCMessageStore.newConnection(AbstractJDBCMessageStore.java:536)
>       at 
> org.apache.qpid.server.store.jdbc.AbstractJDBCMessageStore.newAutoCommitConnection(AbstractJDBCMessageStore.java:509)
>       at 
> org.apache.qpid.server.store.jdbc.AbstractJDBCMessageStore.onDelete(AbstractJDBCMessageStore.java:2040)
>       at 
> org.apache.qpid.server.virtualhost.AbstractVirtualHost$13.run(AbstractVirtualHost.java:2314)
>       at 
> org.apache.qpid.server.model.AbstractConfiguredObject$21.onSuccess(AbstractConfiguredObject.java:2587)
>       at 
> org.apache.qpid.server.model.AbstractConfiguredObject$22$1.run(AbstractConfiguredObject.java:2628)
>       at 
> org.apache.qpid.server.model.AbstractConfiguredObject$22$1.run(AbstractConfiguredObject.java:2624)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at javax.security.auth.Subject.doAs(Subject.java:360)
>       at 
> org.apache.qpid.server.model.AbstractConfiguredObject$22.onSuccess(AbstractConfiguredObject.java:2623)
>       at com.google.common.util.concurrent.Futures$6.run(Futures.java:1319)
>       at 
> org.apache.qpid.server.configuration.updater.TaskExecutorImpl$ImmediateIfSameThreadExecutor.execute(TaskExecutorImpl.java:392)
>       at 
> org.apache.qpid.server.configuration.updater.TaskExecutorImpl.execute(TaskExecutorImpl.java:175)
>       at 
> com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156)
>       at 
> com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:101)
>       at 
> com.google.common.util.concurrent.AbstractFuture.addListener(AbstractFuture.java:170)
>       at 
> com.google.common.util.concurrent.Futures.addCallback(Futures.java:1322)
>       at 
> org.apache.qpid.server.model.AbstractConfiguredObject.addFutureCallback(AbstractConfiguredObject.java:2618)
>       at 
> org.apache.qpid.server.model.AbstractConfiguredObject.doAfterAlways(AbstractConfiguredObject.java:2580)
>       at 
> org.apache.qpid.server.model.AbstractConfiguredObject.doAfterAlways(AbstractConfiguredObject.java:2572)
>       at 
> org.apache.qpid.server.virtualhost.AbstractVirtualHost.doDelete(AbstractVirtualHost.java:2299)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:498)
>       at 
> org.apache.qpid.server.model.AbstractConfiguredObject.attainState(AbstractConfiguredObject.java:1523)
>       at 
> org.apache.qpid.server.model.AbstractConfiguredObject.access$2000(AbstractConfiguredObject.java:95)
>       at 
> org.apache.qpid.server.model.AbstractConfiguredObject$15.execute(AbstractConfiguredObject.java:1721)
>       at 
> org.apache.qpid.server.model.AbstractConfiguredObject$15.execute(AbstractConfiguredObject.java:1670)
>       at 
> org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:636)
>       at 
> org.apache.qpid.server.model.AbstractConfiguredObject$2.execute(AbstractConfiguredObject.java:629)
>       at 
> org.apache.qpid.server.configuration.updater.TaskExecutorImpl$TaskLoggingWrapper.execute(TaskExecutorImpl.java:240)
>       at 
> org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper$1.run(TaskExecutorImpl.java:312)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at javax.security.auth.Subject.doAs(Subject.java:360)
>       at 
> org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper.call(TaskExecutorImpl.java:305)
>       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>       at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>       at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>       at java.lang.Thread.run(Thread.java:748)
> {noformat}
> The broker survives.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to