Hide Forgot
project_key: EDG RemoteCacheManager rcm = new RemoteCacheManager() ; RemoteCache rc = rcm.getCache("nonExistentCache") ; The value rc != null. See HotRodClientRemoteCacheManagerTestCase.testGetNonExistentCache()
Richard, isn't that throwing an exception? That I believe is what is happening with current behaivour, it should be returning HotRodClientException, see https://github.com/infinispan/infinispan/blob/master/client/hotrod-client/src/test/java/org/infinispan/client/hotrod/RemoteCacheManagerTest.java#L96 Now, this will change in in 5.0: ISPN-990
Link: Added: This issue is related to ISPN-990
Hi Galder No, no exception is being thrown. Also, the javadoc for 4.2.1 does not mention anything about throwing an exception: http://docs.jboss.org/infinispan/4.2/apidocs/org/infinispan/client/hotrod/RemoteCacheManager.html#getCache%28boolean%29
Right, I see the mismatch. In 4.2.x, the error will the thrown when a put or similar operation is executed against the non-existent cache. I can't change the API assumptions in 4.2.x but for 5.x, getCache() will return null in this scenarios. I'm closing this for the time being.