You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Alex Rudyy (JIRA)" <ji...@apache.org> on 2016/01/08 18:01:39 UTC

[jira] [Updated] (QPID-6959) [Java Broker] Cannot mutate BDB HA environment and modify such settings like priority, designating primary, etc when environment is in restarting state

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

Alex Rudyy updated QPID-6959:
-----------------------------
    Status: Reviewable  (was: In Progress)

> [Java Broker] Cannot mutate BDB HA environment and modify such settings like priority, designating primary, etc when environment is in restarting state
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-6959
>                 URL: https://issues.apache.org/jira/browse/QPID-6959
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Broker
>    Affects Versions: qpid-java-6.0
>            Reporter: Alex Rudyy
>            Assignee: Alex Rudyy
>            Priority: Critical
>
> When cluster majority is lost, the available nodes in the cluster cannot be mutated and their settings cannot be modified due to ReplicationEnvironmentFacade being put into RESTARTING state. As result, any environment mutating operation ends up in exception:
> {noformat}
> 2015-12-23 11:02:12,225 WARN  [HttpManagement-23] (servlet.ServletHandler) - /api/latest/virtualhostnode/node1
> org.apache.qpid.server.util.ConnectionScopedRuntimeException: Failed to set designated primary to value true on BDBHAVirtualHostNodeImpl [id=90edcdaf-a836-4309-8157-0d375860cb58, name=node1, storePath=/fast/home/qpidfast/f391718/qpid-broker/5.1.7/work/node1/config, groupName=ha, address=fastdevl0400.svr.emea.jpmchase.net:5000, state=ACTIVE, priority=1, designatedPrimary=true, quorumOverride=0, role=WAITING]
>         at org.apache.qpid.server.virtualhostnode.berkeleydb.BDBHAVirtualHostNodeImpl.resolveFuture(BDBHAVirtualHostNodeImpl.java:860)
>         at org.apache.qpid.server.virtualhostnode.berkeleydb.BDBHAVirtualHostNodeImpl.postSetDesignatedPrimary(BDBHAVirtualHostNodeImpl.java:791)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at org.apache.qpid.server.model.AbstractConfiguredObject.automatedSetValue(AbstractConfiguredObject.java:420)
>         at org.apache.qpid.server.model.AbstractConfiguredObject.changeAttribute(AbstractConfiguredObject.java:1290)
>         at org.apache.qpid.server.model.AbstractConfiguredObject.changeAttributes(AbstractConfiguredObject.java:1724)
>         at org.apache.qpid.server.model.AbstractConfiguredObject$12.execute(AbstractConfiguredObject.java:1651)
>         at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$2.execute(TaskExecutorImpl.java:149)
>         at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$2.execute(TaskExecutorImpl.java:145)
>         at org.apache.qpid.server.configuration.updater.TaskExecutorImpl.executeTask(TaskExecutorImpl.java:299)
>         at org.apache.qpid.server.configuration.updater.TaskExecutorImpl.access$400(TaskExecutorImpl.java:43)
>         at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper$1.run(TaskExecutorImpl.java:327)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at javax.security.auth.Subject.doAs(Subject.java:356)
>         at org.apache.qpid.server.configuration.updater.TaskExecutorImpl$CallableWrapper.call(TaskExecutorImpl.java:322)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.qpid.server.util.ConnectionScopedRuntimeException: Environment is restarting
>         at org.apache.qpid.server.store.berkeleydb.replication.ReplicatedEnvironmentFacade.getEnvironment(ReplicatedEnvironmentFacade.java:984)
>         at org.apache.qpid.server.store.berkeleydb.replication.ReplicatedEnvironmentFacade.setDesignatedPrimaryInternal(ReplicatedEnvironmentFacade.java:771)
> {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