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

Cache creation with administration API is broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 13.0.0.Final
    • 13.0.0.CR1
    • Core
    • None

    Description

      When we use the administration api supplying an xml configuration that is valid, the server responds with ISPN005031 the supplied configuration for cache my-cache is missing named configuration for it.

      This can be reproduced in our simple tutorials and any other tutorial using this api and an infinispan container running.

      the cache creation using a template name is not broken. 

      the REST API is fine.

      Reproducer: Run the simple tutorial InfinispanRemoteAdminCache 

      https://github.com/infinispan/infinispan-simple-tutorials/tree/main/infinispan-remote/cache-admin-api/src/ main/java/org/infinispan/tutorial/simple/remote/admin

       I reproduce the error with the server image and the standalone server run without container.

       

       Server logs

      2021-10-05 10:12:56,342 ERROR (non-blocking-thread-p2-t5) [org.infinispan.server.hotrod.BaseRequestProcessor] ISPN005003: Exception reported org.infinispan.commons.CacheConfigurationException: ISPN005031: The supplied configuration for cache 'test' is missing a named configuration for it: <distributed-cache name="test">2021-10-05 10:12:56,342 ERROR (non-blocking-thread-p2-t5) [org.infinispan.server.hotrod.BaseRequestProcessor] ISPN005003: Exception reported org.infinispan.commons.CacheConfigurationException: ISPN005031: The supplied configuration for cache 'test' is missing a named configuration for it: <distributed-cache name="test">    <encoding media-type="application/x-protostream"/></distributed-cache> at org.infinispan.server.tasks.admin.CacheCreateTask.getConfiguration(CacheCreateTask.java:30) at org.infinispan.server.tasks.admin.CacheGetOrCreateTask.execute(CacheGetOrCreateTask.java:46) at org.infinispan.server.tasks.admin.CacheGetOrCreateTask.execute(CacheGetOrCreateTask.java:25) at org.infinispan.server.core.admin.AdminServerTask.execute(AdminServerTask.java:57) at org.infinispan.server.core.admin.AdminOperationsHandler.lambda$runTask$0(AdminOperationsHandler.java:49) at org.infinispan.security.Security.doAs(Security.java:141) at org.infinispan.server.core.admin.AdminOperationsHandler.lambda$runTask$1(AdminOperationsHandler.java:49) at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377) at java.base/java.lang.Thread.run(Thread.java:829)
      

       

      Attachments

        Activity

          People

            ttarrant@redhat.com Tristan Tarrant
            karestig@redhat.com Katia Aresti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: