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

When cache 'memcachedCache' is not declared and the default has expiration. It fails due: has expiration enabled which violates the Memcached protocol

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 15.0.0.Final
    • 13.0.3.Final, 14.0.0.Final
    • Memcached, Server
    • None

      <cache-container name="clustered" default-cache="optumSession" statistics="true">
          <transport xmlns="urn:org:jgroups" cluster="${infinispan.cluster.name:cluster}" stack="local-tcp" node-name="${infinispan.node.name:}"/>
      
          <distributed-cache name="optumSession" remote-timeout="30000" start="EAGER">
              <backups>
                  <backup site="CTC" strategy="ASYNC" timeout="10000"/>
              </backups>
              <locking striping="false" acquire-timeout="30000" concurrency-level="11000"/>
              <transaction mode="NONE"/>
              <expiration max-idle="1800000" lifespan="1800000"/>
          </distributed-cache>
      
            <endpoints>
               <endpoint socket-binding="default" security-realm="default">
                  <hotrod-connector name="hotrod"/>
                  <rest-connector name="rest">
                     <authentication mechanisms="BASIC"/>
                  </rest-connector>
                  <memcached-connector socket-binding="memcached" />
               </endpoint>
            </endpoints>
      
      [1;31m2021-12-07 07:09:50,022 FATAL (main) [org.infinispan.SERVER] ISPN080028: Infinispan Server failed to start java.util.concurrent.ExecutionException: org.infinispan.commons.CacheConfigurationException: ISPN011001: Cache 'memcachedCache' has expiration enabled which violates the Memcached protocol
      	at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)
      	at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1999)
      	at org.infinispan.server.Bootstrap.runInternal(Bootstrap.java:165)
      	at org.infinispan.server.tool.Main.run(Main.java:98)
      	at org.infinispan.server.Bootstrap.main(Bootstrap.java:50)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.infinispan.server.loader.Loader.run(Loader.java:106)
      	at org.infinispan.server.loader.Loader.main(Loader.java:51)
      Caused by: org.infinispan.commons.CacheConfigurationException: ISPN011001: Cache 'memcachedCache' has expiration enabled which violates the Memcached protocol
      	at org.infinispan.server.memcached.MemcachedServer.startInternal(MemcachedServer.java:60)
      	at org.infinispan.server.core.AbstractProtocolServer.start(AbstractProtocolServer.java:116)
      	at org.infinispan.server.SecurityActions.lambda$startProtocolServer$3(SecurityActions.java:88)
      	at org.infinispan.security.Security.doPrivileged(Security.java:56)
      	at org.infinispan.server.SecurityActions.doPrivileged(SecurityActions.java:40)
      	at org.infinispan.server.SecurityActions.startProtocolServer(SecurityActions.java:87)
      	at org.infinispan.server.Server.lambda$run$3(Server.java:432)
      	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
      	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1655)
      	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
      	at java.base/java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290)
      	at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746)
      	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
      	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
      	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
      	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
      	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:183)
      
      

              ttarrant@redhat.com Tristan Tarrant
              dlovison@redhat.com Diego Lovison
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: