[infinispan-issues] [JBoss JIRA] (ISPN-4212) Unable to get entries from newly started non-defined caches

Galder Zamarreño (JIRA) issues at jboss.org
Mon May 19 07:28:57 EDT 2014


    [ https://issues.jboss.org/browse/ISPN-4212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12968617#comment-12968617 ] 

Galder Zamarreño edited comment on ISPN-4212 at 5/19/14 7:27 AM:
-----------------------------------------------------------------

Jakub/Martin, we will be reinstating the limitation of talking only to predefined caches. Details can be found in ISPN-4296. Putting back the limit should fix this issue.


was (Author: galder.zamarreno):
Jakub/Martin, we will be reinstating the limitation of talking only to predefined caches. Details can be found in ISPN-4296. Putting back the limit should this issue.

> Unable to get entries from newly started non-defined caches
> -----------------------------------------------------------
>
>                 Key: ISPN-4212
>                 URL: https://issues.jboss.org/browse/ISPN-4212
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Remote Protocols, Server
>    Affects Versions: 7.0.0.Alpha3
>            Reporter: Jakub Markos
>            Assignee: Galder Zamarreño
>             Fix For: 7.0.0.Beta1
>
>
> If you use hotrod to put entries into a cache which is not defined in standalone.xml, it will be started:
> {code}
> 15:35:50,676 INFO  [org.jboss.as.clustering.infinispan] (HotRodServerWorker-1) JBAS010281: Started nonDefinedCache cache from local container
> {code}
> but when you try to retrieve the entry back, you'll get null.
> {code}
> RemoteCacheManager rcm = new RemoteCacheManager(new ConfigurationBuilder().addServer().host("localhost").port(11222).build());
> RemoteCache<String, String> cache = rcm.getCache("nonDefinedCache");
> cache.put("key", "value");
> cache.get("key"); // returns null
> {code}
> Happens in the current server snapshot.
> A while back you'd get this
> {code}
> WARN: ISPN004005: Error received from the server: org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'nonDefinedCache' not found amongst the configured caches
> {code}
> So it seems we're somewhere in the middle now (not throwing exception, but also not working). The documentation here is also wrong https://github.com/infinispan/infinispan/blob/master/client/hotrod-client/src/main/java/org/infinispan/client/hotrod/RemoteCacheManager.java#L511 . 



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)



More information about the infinispan-issues mailing list