Bug 745886 - CacheNotFound exception for cache defined in infinispan-configuration.xml
Summary: CacheNotFound exception for cache defined in infinispan-configuration.xml
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: JBoss Data Grid 5
Classification: JBoss
Component: Infinispan
Version: unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Default User
QA Contact:
URL: http://jira.jboss.org/jira/browse/EDG-62
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-03 02:06 UTC by Richard Achmatowicz
Modified: 2012-07-13 04:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: EDG-62
Environment:
Fedora 14
Last Closed: 2011-06-03 03:00:57 UTC
Type: Bug


Attachments (Terms of Use)
HotRodClientTest.java (1.96 KB, text/x-java)
2011-06-03 02:15 UTC, Richard Achmatowicz
no flags Details
compile.sh (394 bytes, application/x-shellscript)
2011-06-03 02:15 UTC, Richard Achmatowicz
no flags Details
execute.sh (746 bytes, application/x-shellscript)
2011-06-03 02:15 UTC, Richard Achmatowicz
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker EDG-62 0 Major Closed CacheNotFound exception for cache defined in infinispan-configuration.xml 2017-03-31 05:46:11 UTC

Description Richard Achmatowicz 2011-06-03 02:06:57 UTC
++ This bug is a clone of bug 745885 ++

project_key: EDG

The unreleased version of EDG 6.0.0 Alpha I am using is edg6-ispn-5.0.0-SNAPSHOT-110601-0842.zip.

Steps to reproduce
------------------
1. Create configuration for a server datagrid1.xml
> cp $JBOSS_DATAGRID/standalone/configuration/standalone.xml  $JBOSS_DATAGRID/standalone/configuration/datagrid1.xml
> edit datagrid1.xml to add properties for jboss.infinispan.hotrod.server.host and jboss.infinispan.memcached.server.host to bind to correct host (in my case 192.168.0.100)
> also change the default interface in datagrid1.xml to point to the same IP address
> edit cp $JBOSS_DATAGRID/bin/standaline.conf to add -Djava.net.preferIPv4Stack=true to JAVA_OPTS
Do the same/similar for datagrid2.xml on a second IP address (e.g. 192.168.0.101)

2. Start the servers:
> $JBOSS_DATAGRID/bin/standalone.sh -server-config datagrid1.xml
> $JBOSS_DATAGRID/bin/standalone.sh -server-config datagrid2.xml

Even though sampleReplicatedCache is defined in $JBOSS_DATAGRID/standalone/configuration/infinispan-configuration.xml, I cannot access that named cache:
> ./execute.sh HotRodClientTest getKeys
Starting HotRodClientTest
Exception in thread "main" org.infinispan.client.hotrod.exceptions.HotRodClientException:Request for message id[2] returned server error (status=0x84): org.infinispan.server.hotrod.CacheNotFoundException: Cache with name 'sampleReplicatedCache' not found amongst the configured caches
    at org.infinispan.client.hotrod.impl.operations.HotRodOperation.checkForErrorsInResponseStatus(HotRodOperation.java:130)
    at org.infinispan.client.hotrod.impl.operations.HotRodOperation.readHeaderAndValidate(HotRodOperation.java:98)
    at org.infinispan.client.hotrod.impl.operations.BulkGetOperation.executeOperation(BulkGetOperation.java:35)
    at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:38)
    at org.infinispan.client.hotrod.impl.RemoteCacheImpl.getBulk(RemoteCacheImpl.java:312)
    at org.infinispan.client.hotrod.impl.RemoteCacheImpl.getBulk(RemoteCacheImpl.java:305)
    at HotRodClientTest.main(HotRodClientTest.java:65)

Accessing the default cache using the same mechanism works.

HotRodClientTest is a hacked-together program which allows me to perform basic requests (put, add, size, getKeys) on HotRod server modules.

Comment 1 Trustin Lee 2011-06-03 02:09:13 UTC
Where can I get the HotRodTestClient and execute.sh?

Comment 2 Richard Achmatowicz 2011-06-03 02:11:47 UTC
Attaching in a few minutes....

Comment 3 Richard Achmatowicz 2011-06-03 02:15:11 UTC
Attachment: Added: HotRodClientTest.java
Attachment: Added: compile.sh
Attachment: Added: execute.sh


Comment 4 Richard Achmatowicz 2011-06-03 02:18:21 UTC
Here is what I do:

1. Start the EDG server instance
2. compile the test pgm
> ./compile.sh HotRodClientTest.java

3. execute the test pgm
./execute.sh HotRodClientTest add a 1    // add a key called a with value 1 Mb
./execute.sh HotRodClientTest size       // call size on the cache
./execute.sh HotRodClientTest getKeys    // return keys in the cache 
...




Comment 5 Trustin Lee 2011-06-03 03:00:57 UTC
Fixed.  Removing 'Fix version' because there is no point specifying it for the bug that didn't even exist in the previous release.

Comment 6 Richard Achmatowicz 2011-06-03 13:46:36 UTC
Hi Trustin

1. What was the resolution?

2. Can we please keep the Fix Versions EDG 6.0.0. Alpha in place, otherwise we are just throwing this information out into the JIRA ether and we're back where started - no decent tracking of issues discovered which apply to the Alpha release. Why should we not record issue information for a targetted release just because there was no previous released version? 

Comment 7 Anne-Louise Tangring 2011-10-11 17:05:59 UTC
Docs QE Status: Removed: NEW 



Note You need to log in before you can comment on or make changes to this bug.