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

JSR-107 Support for clustered caches in HotRod implementation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • JCache
    • None

      Current implementation supports only using local caches - usage of different cache types leads to the following exceptions (when using cache which is included in configuration file):

      Client:

      javax.cache.CacheException: ISPN021027: Failed to add local cache 'default' on the server
      	at org.infinispan.jcache.remote.ServerManager$3.run(ServerManager.java:118)
      	at org.infinispan.jcache.remote.ServerManager.withManagementClient(ServerManager.java:171)
      	at org.infinispan.jcache.remote.ServerManager.addCache(ServerManager.java:104)
      	at org.infinispan.jcache.remote.JCacheManager.create(JCacheManager.java:65)
      	at org.infinispan.jcache.AbstractJCacheManager.createCache(AbstractJCacheManager.java:94)
      	at org.infinispan.server.test.jcache.JCacheRemoteIT.testCachingConfiguration(JCacheRemoteIT.java:78)
      

      Server:

      10:47:29,896 ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) JBAS014612: Operation ("add") failed - address: ([
          ("subsystem" => "infinispan"),
          ("cache-container" => "clustered"),
          ("local-cache" => "default")
      ]): org.jboss.msc.service.DuplicateServiceException: Service jboss.infinispan.clustered.default.config is already registered
      	at org.jboss.msc.service.ServiceRegistrationImpl.setInstance(ServiceRegistrationImpl.java:158)
      

      Furthermore, when using multiple nodes in the cluster and the cache is not amongst configured caches, it is created as 'local' only on one node (this relates to fact org.infinispan.jcache.remote.ServerManager is configured to use one specific management interface - which is btw hardcoded and cannot be changed). Exception can occur when trying to write into cache.

      Client

      javax.cache.CacheException: ISPN021022: Cache named 'custom' was not found.
      	at org.infinispan.jcache.remote.JCacheManager.create(JCacheManager.java:75)
      	at org.infinispan.jcache.AbstractJCacheManager.createCache(AbstractJCacheManager.java:94)
      	at org.infinispan.server.test.jcache.JCacheRemoteIT.testCachingConfiguration(JCacheRemoteIT.java:78)
      

      Server

      10:59:01,034 ERROR [org.infinispan.server.hotrod.HotRodDecoder] (HotRodServerWorker-1) ISPN005003: Exception reported: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'custom' not found amongst the configured caches
      	at org.infinispan.server.hotrod.HotRodDecoder.getCache(HotRodDecoder.scala:102) 
      

      For full logs pease see linked BZ.

            Unassigned Unassigned
            mcimbora_jira Matej Čimbora (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: