Bug 745889 (EDG-22) - RemoteCache.clear() does not work with replicated mode
Summary: RemoteCache.clear() does not work with replicated mode
Keywords:
Status: CLOSED NEXTRELEASE
Alias: EDG-22
Product: JBoss Data Grid 6
Classification: JBoss
Component: unspecified
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 6.0.0
Assignee: Default User
QA Contact:
URL: http://jira.jboss.org/jira/browse/EDG-22
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-09 20:56 UTC by Richard Achmatowicz
Modified: 2012-08-15 16:47 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-13 21:52:01 UTC
Type: Feature Request


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker EDG-22 0 Major Closed RemoteCache.clear() does not work with replicated mode 2017-09-07 08:35:31 UTC

Description Richard Achmatowicz 2011-06-09 20:56:29 UTC
project_key: EDG

Running the EDG functional test case HotRodClientRemoteCacheTestCase against the default cache (which is based on cache mode distributed) results in no errors/failures. Changing the cache mode from distributed to replicated results in a number of failed and error tests. 

We use one RemoteCacheManager instance and one RemoteCache instance in all the tests - remoteCache.clear() is called in setUp() and tearDown() to clear the replicated cache instance on the server side between tests.

When we print out the cache contents in setUp() and tearDown() we can see that in the case of a distributed cache instance, the cache instance is successfully emptied; however, when using the replicated cache instance, we see that the cache is not cleared successfully. 

For example:

Using a distributed cache:

Running org.jboss.test.cluster.datagrid.test.HotRodClientRemoteCacheTestCase
one-time setup of RemoteCacheManager
RemoteCacheManager: using server list:  test1:11222;test2:11222
Jun 9, 2011 4:54:35 PM org.infinispan.client.hotrod.impl.operations.HotRodOperation readNewTopologyAndHash
INFO: ISPN04006: New topology: {/192.168.0.101:11222=2949, /192.168.0.100:11222=2302}
Jun 9, 2011 4:54:35 PM org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory updateServers
INFO: ISPN04014: New server added(/192.168.0.101:11222), adding to the pool.
Jun 9, 2011 4:54:35 PM org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory updateServers
INFO: ISPN04014: New server added(/192.168.0.100:11222), adding to the pool.
HotRodClientTestSetup: using dist cache configuration
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
Jun 9, 2011 4:54:43 PM org.infinispan.util.logging.Log_$logger info
INFO: Version is: 281483566645386
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
named stats = {hits=69, currentNumberOfEntries=0, totalBytesRead=25186, timeSinceStart=2383, totalNumberOfEntries=136, totalBytesWritten=11852, removeMisses=0, removeHits=24, retrievals=100, stores=136, misses=31}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
one-time teardown of RemoteCachemanager
Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.813 sec

Results :
Tests run: 21, Failures: 0, Errors: 0, Skipped: 0

Using a replicated cache:

Running org.jboss.test.cluster.datagrid.test.HotRodClientRemoteCacheTestCase
one-time setup of RemoteCacheManager
RemoteCacheManager: using server list:  test1:11222;test2:11222
Jun 9, 2011 4:55:56 PM org.infinispan.client.hotrod.impl.operations.HotRodOperation readNewTopologyAndHash
INFO: ISPN04006: New topology: {/192.168.0.101:11222=2949, /192.168.0.100:11222=2302}
Jun 9, 2011 4:55:56 PM org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory updateServers
INFO: ISPN04014: New server added(/192.168.0.101:11222), adding to the pool.
Jun 9, 2011 4:55:56 PM org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory updateServers
INFO: ISPN04014: New server added(/192.168.0.100:11222), adding to the pool.
HotRodClientTestSetup: using repl cache configuration
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {aKey=aValue}
setUp: remoteCache elements : {aKey=aValue}
tearDown: remoteCache elements : {anotherKey=anotherValue, aKey=aValue}
setUp: remoteCache elements : {anotherKey=anotherValue, aKey=aValue}
tearDown: remoteCache elements : {anotherKey=anotherValue, aKey=aValue}
setUp: remoteCache elements : {anotherKey=anotherValue, aKey=aValue}
tearDown: remoteCache elements : {anotherKey=anotherValue, aKey=aValue}
setUp: remoteCache elements : {anotherKey=anotherValue, aKey=aValue}
tearDown: remoteCache elements : {anotherKey=anotherValue, aKey=anotherValue}
setUp: remoteCache elements : {anotherKey=anotherValue, aKey=anotherValue}
tearDown: remoteCache elements : {bKey=bValue, cKey=cValue, aKey=aValue}
setUp: remoteCache elements : {bKey=bValue, cKey=cValue, aKey=aValue}
tearDown: remoteCache elements : {bKey=bValue, cKey=cValue}
setUp: remoteCache elements : {bKey=bValue, cKey=cValue}
tearDown: remoteCache elements : {bKey=bValue, cKey=cValue, aKey=aValue}
setUp: remoteCache elements : {bKey=bValue, cKey=cValue, aKey=aValue}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
Jun 9, 2011 4:56:04 PM org.infinispan.util.logging.Log_$logger info
INFO: Version is: 281483566645407
tearDown: remoteCache elements : {aKey=anotherValue}
setUp: remoteCache elements : {aKey=anotherValue}
tearDown: remoteCache elements : {aKey=anotherValue}
setUp: remoteCache elements : {aKey=anotherValue}
tearDown: remoteCache elements : {aKey=aNewValue}
setUp: remoteCache elements : {aKey=aNewValue}
tearDown: remoteCache elements : {aKey=aValue}
setUp: remoteCache elements : {aKey=aValue}
tearDown: remoteCache elements : {aKey=aValue}
setUp: remoteCache elements : {aKey=aValue}
tearDown: remoteCache elements : {aKey=aNewValue}
setUp: remoteCache elements : {aKey=aNewValue}
tearDown: remoteCache elements : {aKey=aNewValue}
setUp: remoteCache elements : {aKey=aNewValue}
tearDown: remoteCache elements : {aKey=aValue}
setUp: remoteCache elements : {aKey=aValue}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
named stats = {hits=44, currentNumberOfEntries=0, totalBytesRead=28263, timeSinceStart=2464, totalNumberOfEntries=135, totalBytesWritten=13516, removeMisses=2, removeHits=8, retrievals=87, stores=135, misses=43}
tearDown: remoteCache elements : {}
setUp: remoteCache elements : {}
tearDown: remoteCache elements : {}
one-time teardown of RemoteCachemanager
Tests run: 21, Failures: 7, Errors: 4, Skipped: 0, Time elapsed: 8.598 sec <<< FAILURE!

Comment 1 Richard Achmatowicz 2011-06-09 21:00:32 UTC
The sources for the functional testsuite have been ported to run against EDG Alpha and have been moved to:
https://svn.devel.redhat.com/repos/jboss-qa/edg/as7-testsuite-poc

To run the testsuite against two EDG instances:
1. create two names in DNS test1, test2 which point to the IPs you will bind to
2. start up two instances of EDG on these IPs
3. checkout the testsuite and run
> mvn integration-test


The test cases will expect the two instances to be available.



Comment 2 Trustin Lee 2011-07-11 14:36:39 UTC
Is this still an issue with 5.0.0.CR6?

Comment 3 Michal Linhard 2011-07-13 21:52:01 UTC
couldn't replicate this in 5.0.0.CR7 and the new build. resolving for now.

Comment 4 Anne-Louise Tangring 2011-09-26 19:41:30 UTC
Docs QE Status: Removed: NEW 



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