[jboss-jira] [JBoss JIRA] (WFLY-7912) It's not possible to change election-policy of singleton-policy
Tomas Hofman (JIRA)
issues at jboss.org
Thu Feb 2 10:20:00 EST 2017
[ https://issues.jboss.org/browse/WFLY-7912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13357677#comment-13357677 ]
Tomas Hofman commented on WFLY-7912:
------------------------------------
[~pferraro] I think this should be reopened. Changing from simple election policy to random is working as you described, but changing from random back to simple is not:
{code}
[standalone at localhost:9990 /] /subsystem=singleton/singleton-policy=default/election-policy=simple:add {allow-resource-service-restart=true}
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0158: Operation handler failed: org.jboss.msc.service.DuplicateServiceException: Service org.wildfly.clustering.singleton.policy.default.election-policy is already registered",
"rolled-back" => true
}
{code}
The random-election-policy is not recognized as a required singleton sibling in AddStepHandler and isn't removed.
Also, this approach doesn't go along with Web Console.
> It's not possible to change election-policy of singleton-policy
> ---------------------------------------------------------------
>
> Key: WFLY-7912
> URL: https://issues.jboss.org/browse/WFLY-7912
> Project: WildFly
> Issue Type: Bug
> Components: Clustering
> Affects Versions: 10.1.0.Final
> Reporter: Tomas Hofman
> Assignee: Paul Ferraro
>
> Attempt to change election policy:
> {code}
> [standalone at localhost:9990 /] batch
> [standalone at localhost:9990 / #] /subsystem=singleton/singleton-policy=default/election-policy=simple:remove
> [standalone at localhost:9990 / #] /subsystem=singleton/singleton-policy=default/election-policy=random:add
> [standalone at localhost:9990 / #] run-batch
> {code}
> results in
> {code}
> The batch failed with the following error (you are remaining in the batch editing mode to have a chance to correct the error):
> WFLYCTL0062: Composite operation failed and was rolled back. Steps that failed:
> Step: step-2
> Operation: /subsystem=singleton/singleton-policy=default/election-policy=random:add
> Failure: WFLYCTL0158: Operation handler failed: org.jboss.msc.service.DuplicateServiceException: Service org.wildfly.clustering.singleton.policy.default.election-policy is already registered
> {code}
> The bug seems to be introduced by https://github.com/wildfly/wildfly/commit/605b22c30ae122492e7c019e330fea24e0206bb1
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list