Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7143

Memcached connector fails if default cache is not configured

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 9.0.0.Alpha4
    • Memcached, Server
    • None

    Description

      When core and endpoint configurations in clustered.xml config from server distribution are reduced to this:

              <subsystem xmlns="urn:infinispan:server:core:9.0" default-cache-container="clustered">
                  <cache-container name="clustered" default-cache="default" statistics="true">
                      <transport lock-timeout="60000"/>
                      <global-state/>
                      <distributed-cache name="memcachedCache" mode="SYNC" segments="20" owners="2" remote-timeout="30000" start="EAGER">
                          <locking acquire-timeout="30000" concurrency-level="1000" striping="false"/>
                          <transaction mode="NONE"/>
                      </distributed-cache>
                  </cache-container>
              </subsystem>
              <subsystem xmlns="urn:infinispan:server:endpoint:9.0">
                  <memcached-connector socket-binding="memcached" cache-container="clustered" cache="memcachedCache"/>
              </subsystem>
      

      the server throws this ERROR on startup:

      17:10:14,051 INFO  [org.jboss.as.clustering.infinispan] (MSC service thread 1-3) DGISPN0001: Started memcachedCache cache from clustered container
      17:10:14,069 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
          ("subsystem" => "datagrid-infinispan-endpoint"),
          ("memcached-connector" => "memcached-connector")
      ]) - failure description: {
          "WFLYCTL0412: Required services that are not installed:" => ["jboss.datagrid-infinispan.clustered.default"],
          "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.datagrid-infinispan-endpoint.memcached.memcached-connector is missing [jboss.datagrid-infinispan.clustered.default]"]
      }
      17:10:14,085 INFO  [org.jboss.as.controller] (Controller Boot Thread) WFLYCTL0183: Service status report
      WFLYCTL0184:    New missing/unsatisfied dependencies:
            service jboss.datagrid-infinispan.clustered.default (missing) dependents: [service jboss.datagrid-infinispan-endpoint.memcached.memcached-connector] 
      
      17:10:14,143 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:10090/management
      17:10:14,143 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:10090
      17:10:14,144 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: Infinispan Server 9.0.0-SNAPSHOT (WildFly Core 2.2.0.Final) started (with errors) in 7173ms - Started 177 of 222 services (1 services failed or missing dependencies, 110 services are lazy, passive or on-demand)
      

      When a default cache is also defined, like

              <subsystem xmlns="urn:infinispan:server:core:9.0" default-cache-container="clustered">
                  <cache-container name="clustered" default-cache="default" statistics="true">
                      <transport lock-timeout="60000"/>
                      <global-state/>
                     
                      <distributed-cache name="default" mode="SYNC" segments="20" owners="2" remote-timeout="30000" start="EAGER">
                          <locking acquire-timeout="30000" concurrency-level="1000" striping="false"/>
                          <transaction mode="NONE"/>
                      </distributed-cache>
                      <distributed-cache name="memcachedCache" mode="SYNC" segments="20" owners="2" remote-timeout="30000" start="EAGER">
                          <locking acquire-timeout="30000" concurrency-level="1000" striping="false"/>
                          <transaction mode="NONE"/>
                      </distributed-cache>
                  </cache-container>
              </subsystem>
      

      everything is OK.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jmarkos Jakub Markos (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: