Bug 745885 (EDG-62)

Summary: CacheNotFound exception for cache defined in infinispan-configuration.xml
Product: [JBoss] JBoss Data Grid 6 Reporter: Richard Achmatowicz <rachmato>
Component: InfinispanAssignee: Default User <jbpapp-maint>
Status: CLOSED NEXTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: jdg-bugs, rachmato, trustin
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/EDG-62
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 745886 (view as bug list) Environment:
Fedora 14
Last Closed: 2011-06-03 03:00:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
HotRodClientTest.java
none
compile.sh
none
execute.sh none

Description Richard Achmatowicz 2011-06-03 02:06:57 UTC
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