]
Radoslav Husar moved JBEAP-12253 to WFLY-9115:
----------------------------------------------
Project: WildFly (was: JBoss Enterprise Application Platform)
Key: WFLY-9115 (was: JBEAP-12253)
Workflow: GIT Pull Request workflow (was: CDW with loose statuses v1)
Component/s: Clustering
(was: Clustering)
Affects Version/s: 11.0.0.Alpha1
(was: 7.1.0.ER2)
Toggling default singleton election policy fails
------------------------------------------------
Key: WFLY-9115
URL:
https://issues.jboss.org/browse/WFLY-9115
Project: WildFly
Issue Type: Bug
Components: Clustering
Affects Versions: 11.0.0.Alpha1
Reporter: Radoslav Husar
Assignee: Radoslav Husar
{noformat}
[standalone@localhost:9990 /]
/subsystem=singleton/singleton-policy=foo/election-policy=random:add{allow-resource-service-restart=true
{"outcome" => "success"}
[standalone@localhost:9990 /]
/subsystem=singleton/singleton-policy=foo/election-policy=simple:add{allow-resource-service-restart=true
{
"outcome" => "failed",
"failure-description" => "WFLYCTL0436: Cannot register capability
'org.wildfly.clustering.singleton.policy.election.foo' at location '[
(\"subsystem\" => \"singleton\"),
(\"singleton-policy\" => \"foo\"),
(\"election-policy\" => \"simple\")
]' as it is already registered in context 'global' at location(s) '[[
(\"subsystem\" => \"singleton\"),
(\"singleton-policy\" => \"foo\"),
(\"election-policy\" => \"random\")
]]'",
"rolled-back" => true
}
{noformat}