Do you have a unit test for this?
On 23 Apr 2009, at 03:53, Yong Yuan wrote:
Hi,
I have two servers that use JBoss Cache 3.0.3. Each server is
configured to replicate its states to the other. The bigger server
has more memory and thus contains most of the cache states, while
the smaller server uses a ClusteredCacheLoader to get cached states
if it can't find them in its own cache instance:
Smaller server -> a cache instance
||
|| using ClusteredCacheLoader to get cached state
\\ //
Bigger server -> a cache instance
The problem is, the ClusteredCacheLoader never retrieved any cached
state. Turning on trace, I found that ClusteredCacheLoader always
returned null if cache mode was asynchronous replication and there
was at least one serialization executor. Therefore, I set
serializationExecutorPoolSize to 0. This time, ClusteredCacheLoader
did attempt to send out remote request, but it ended up getting a
replication exception in the response, as the following log shows:
(CommandAwareRpcDispatcher.java:291) 2009-04-22 19:47:50,151 TRACE
responses: [sender=10.210.102.104:45592, retval=[true, false],
received=true, suspected=false]
[sender=10.210.102.104:37132, retval=null, received=false,
suspected=false]
The bigger server didn't have any exception logged, though.
Any suggestion how I should solve this problem? Thanks a lot!
_______________________________________________
jbosscache-users mailing list
jbosscache-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jbosscache-users