Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-8014

Remote store cannot be added to a cache via CLI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 11.0.0.Alpha1
    • Clustering
    • None
    • Hide

      Standalone mode, create new cache:
      /subsystem=infinispan/cache-container=web/local-cache=myCache:add

      try to add a remote store:
      /subsystem=infinispan/cache-container=web/local-cache=myCache/store=remote:add(remote-servers=[mail-smtp])

      Show
      Standalone mode, create new cache: /subsystem=infinispan/cache-container=web/local-cache=myCache:add try to add a remote store: /subsystem=infinispan/cache-container=web/local-cache=myCache/store=remote:add(remote-servers=[mail-smtp])
    • Hide

      Both store=file:add and store=remove:add succeed when the

      {allow-resource-service-restart=true}

      invocation flag is used.

      Show
      Both store= file:add and store=remove:add succeed when the {allow-resource-service-restart=true} invocation flag is used.

      It is not possible to add remote store to a new cache:

      /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
      }

      However it is possible to add a file store:
      /subsystem=infinispan/cache-container=web/local-cache=myCache/store=file:add

              pferraro@redhat.com Paul Ferraro
              mpetrov@redhat.com Michal Petrov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: