Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-1038

Server can't start with "default" cache if you changed default-cache name

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Minor
    • None
    • JDG 7.1.0 GA
    • Server
    • None
    • Workaround Exists
    • Hide

      Remove <local-cache name="default"/>.

      Show
      Remove <local-cache name="default"/> .
    • Hide

      Standalone JDG server with the configuration is enough to reproduce the issue.

      Show
      Standalone JDG server with the configuration is enough to reproduce the issue.

    Description

      You can change the name of the default cache by default-cache. It works only if a name of "default" is removed. For example, with "default" cache remained as in the following configuration:

              <subsystem xmlns="urn:infinispan:server:core:8.4" default-cache-container="local">
                  <cache-container name="local" default-cache="hogeCache" statistics="true">
                      <global-state/>
                      <local-cache name="default"/> <!-- causing the error -->
                      <local-cache name="hogeCache"/>
                      <local-cache name="memcachedCache"/>
                      <local-cache name="namedCache"/>
                  </cache-container>
              </subsystem>
      

      The server doesn't start properly with this error.

      2017-06-21 14:19:03,464 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 20) WFLYCTL0013: Operation ("add") failed - address: ([
          ("subsystem" => "datagrid-infinispan"),
          ("cache-container" => "local"),
          ("configurations" => "CONFIGURATIONS"),
          ("local-cache-configuration" => "default")
      ]): org.jboss.msc.service.DuplicateServiceException: Service jboss.datagrid-infinispan.local.default.config is already registered
              at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:158)
              at org.jboss.msc.service.ServiceControllerImpl.startInstallation(ServiceControllerImpl.java:235)
              at org.jboss.msc.service.ServiceContainerImpl.install(ServiceContainerImpl.java:768)
              at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223)
              at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2401)
              at org.jboss.msc.service.ServiceTargetImpl.install(ServiceTargetImpl.java:223)
              at org.jboss.msc.service.ServiceControllerImpl$ChildServiceTarget.install(ServiceControllerImpl.java:2401)
              at org.jboss.msc.service.ServiceBuilderImpl.install(ServiceBuilderImpl.java:317)
              at org.jboss.as.controller.OperationContextImpl$ContextServiceBuilder.install(OperationContextImpl.java:2129)
              at org.jboss.as.clustering.infinispan.subsystem.CacheConfigurationAdd.installCacheConfigurationService(CacheConfigurationAdd.java:313)
              at org.jboss.as.clustering.infinispan.subsystem.CacheConfigurationAdd.installRuntimeServices(CacheConfigurationAdd.java:242)
              at org.jboss.as.clustering.infinispan.subsystem.CacheConfigurationAdd.performRuntime(CacheConfigurationAdd.java:207)
              at org.jboss.as.controller.AbstractAddStepHandler.performRuntime(AbstractAddStepHandler.java:337)
              at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:151)
              at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:890)
              at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:659)
              at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:370)
              at org.jboss.as.controller.ParallelBootOperationStepHandler$ParallelBootTask.run(ParallelBootOperationStepHandler.java:359)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:748)
              at org.jboss.threads.JBossThread.run(JBossThread.java:320)
      

      Attachments

        Issue Links

          Activity

            People

              ttarrant@redhat.com Tristan Tarrant
              rhn-support-onagano Osamu Nagano
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: