[jboss-jira] [JBoss JIRA] (WFLY-8014) Remote store cannot be added to a cache via CLI
Paul Ferraro (JIRA)
issues at jboss.org
Thu Feb 2 11:34:00 EST 2017
[ https://issues.jboss.org/browse/WFLY-8014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Ferraro closed WFLY-8014.
------------------------------
Resolution: Rejected
You must use the allow-resource-service-restart=true invocation flag, since the addition of the file cache-store implies the removal of the existing store=none resource.
e.g.
{noformat}
/subsystem=infinispan/cache-container=web/local-cache=myCache/store=file:add(){allow-resource-service-restart=true}
{noformat}
Note that the above command automatically removes the existing default store=none resource. This one liner is equivalent to the following:
{noformat}
batch
/subsystem=infinispan/cache-container=web/local-cache=myCache/store=none:remove(){allow-resource-service-restart=true}
/subsystem=infinispan/cache-container=web/local-cache=myCache/store=file:add()
run-batch
{noformat}
> Remote store cannot be added to a cache via CLI
> -----------------------------------------------
>
> Key: WFLY-8014
> URL: https://issues.jboss.org/browse/WFLY-8014
> Project: WildFly
> Issue Type: Bug
> Components: Clustering
> Affects Versions: 11.0.0.Alpha1
> Reporter: Michal Petrov
> Assignee: Paul Ferraro
>
> It is not possible to add remote store to a new cache:
> {quote}
> /subsystem=infinispan/cache-container=web/local-cache=myCache/store=remote:add(remote-servers=\[mail-smtp\])
> {
> "outcome" => "failed",
> "failure-description" => "WFLYCTL0158: Operation handler failed: org.jboss.msc.service.DuplicateServiceException: Service org.wildfly.clustering.infinispan.cache-configuration.web.myCache.store is already registered",
> "rolled-back" => true
> }
> {quote}
> However it is possible to add a file store:
> {{/subsystem=infinispan/cache-container=web/local-cache=myCache/store=file:add}}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list