infinispan/infinispan-server — pull request #129 by tsykora (2013-08-01 12:18:10+00:00)
Title: RollUps config,shared=true fix loadAllKeys() WARN

While trying to configure rolling upgrades for 2 clusters (distribution 2+2 nodes) I found this issue (see the whole exception below).
If it's not more complex than I think, I hope this simple pull request can fix it. It should be enough to explicitly mark RCS as shared. Errors and warnings disappeared then.

13:42:55,838 ERROR [org.infinispan.loaders.remote.RemoteCacheStore] (undefined) ISPN010001: RemoteCacheStore can only run in shared mode! This method shouldn't be called in shared mode
13:42:55,840 WARN [org.infinispan.statetransfer.StateConsumerImpl] (undefined) ISPN000194: Failed loading keys from cache store: org.infinispan.loaders.CacheLoaderException: RemoteCacheStore can only run in shared mode! This method shouldn't be called in shared mode
at org.infinispan.loaders.remote.RemoteCacheStore.loadAllKeys(RemoteCacheStore.java:145) [infinispan-cachestore-remote-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateConsumerImpl.invalidateSegments(StateConsumerImpl.java:823) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateConsumerImpl.onTopologyUpdate(StateConsumerImpl.java:345) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateTransferManagerImpl.doTopologyUpdate(StateTransferManagerImpl.java:177) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateTransferManagerImpl.access$000(StateTransferManagerImpl.java:38) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateTransferManagerImpl$1.rebalance(StateTransferManagerImpl.java:104) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.topology.LocalTopologyManagerImpl.handleRebalance(LocalTopologyManagerImpl.java:228) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.topology.CacheTopologyControlCommand.doPerform(CacheTopologyControlCommand.java:155) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.topology.CacheTopologyControlCommand.perform(CacheTopologyControlCommand.java:124) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.topology.ClusterTopologyManagerImpl$3.run(ClusterTopologyManagerImpl.java:601) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_30]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_30]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_30]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final-redhat-1.jar:2.1.0.Final-redhat-1]

13:42:55,875 ERROR [org.infinispan.loaders.remote.RemoteCacheStore] (remote-thread-0) ISPN010001: RemoteCacheStore can only run in shared mode! This method shouldn't be called in shared mode
13:42:55,876 WARN [org.infinispan.statetransfer.StateConsumerImpl] (remote-thread-0) ISPN000194: Failed loading keys from cache store: org.infinispan.loaders.CacheLoaderException: RemoteCacheStore can only run in shared mode! This method shouldn't be called in shared mode
at org.infinispan.loaders.remote.RemoteCacheStore.loadAllKeys(RemoteCacheStore.java:145) [infinispan-cachestore-remote-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateConsumerImpl.invalidateSegments(StateConsumerImpl.java:823) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateConsumerImpl.onTopologyUpdate(StateConsumerImpl.java:345) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateTransferManagerImpl.doTopologyUpdate(StateTransferManagerImpl.java:177) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateTransferManagerImpl.access$000(StateTransferManagerImpl.java:38) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateTransferManagerImpl$1.rebalance(StateTransferManagerImpl.java:104) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.topology.LocalTopologyManagerImpl.handleRebalance(LocalTopologyManagerImpl.java:228) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.topology.CacheTopologyControlCommand.doPerform(CacheTopologyControlCommand.java:155) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.topology.CacheTopologyControlCommand.perform(CacheTopologyControlCommand.java:124) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher$4.run(CommandAwareRpcDispatcher.java:270) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]

13:42:55,925 ERROR [org.infinispan.loaders.remote.RemoteCacheStore] (undefined) ISPN010001: RemoteCacheStore can only run in shared mode! This method shouldn't be called in shared mode
13:42:55,926 WARN [org.infinispan.statetransfer.OutboundTransferTask] (undefined) ISPN000194: Failed loading keys from cache store: org.infinispan.loaders.CacheLoaderException: RemoteCacheStore can only run in shared mode! This method shouldn't be called in shared mode
at org.infinispan.loaders.remote.RemoteCacheStore.loadAllKeys(RemoteCacheStore.java:145) [infinispan-cachestore-remote-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.OutboundTransferTask.run(OutboundTransferTask.java:147) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_30]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_30]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_30]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_30]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_30]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_30]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final-redhat-1.jar:2.1.0.Final-redhat-1]

13:42:55,937 ERROR [org.infinispan.loaders.remote.RemoteCacheStore] (undefined) ISPN010001: RemoteCacheStore can only run in shared mode! This method shouldn't be called in shared mode
13:42:55,939 ERROR [org.infinispan.loaders.remote.RemoteCacheStore] (remote-thread-0) ISPN010001: RemoteCacheStore can only run in shared mode! This method shouldn't be called in shared mode
13:42:55,939 WARN [org.infinispan.statetransfer.StateConsumerImpl] (remote-thread-0) ISPN000194: Failed loading keys from cache store: org.infinispan.loaders.CacheLoaderException: RemoteCacheStore can only run in shared mode! This method shouldn't be called in shared mode
at org.infinispan.loaders.remote.RemoteCacheStore.loadAllKeys(RemoteCacheStore.java:145) [infinispan-cachestore-remote-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateConsumerImpl.invalidateSegments(StateConsumerImpl.java:823) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateConsumerImpl.onTopologyUpdate(StateConsumerImpl.java:345) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateTransferManagerImpl.doTopologyUpdate(StateTransferManagerImpl.java:177) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateTransferManagerImpl.access$000(StateTransferManagerImpl.java:38) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateTransferManagerImpl$1.updateConsistentHash(StateTransferManagerImpl.java:99) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.topology.LocalTopologyManagerImpl.handleConsistentHashUpdate(LocalTopologyManagerImpl.java:191) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.topology.CacheTopologyControlCommand.doPerform(CacheTopologyControlCommand.java:152) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.topology.CacheTopologyControlCommand.perform(CacheTopologyControlCommand.java:124) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher$4.run(CommandAwareRpcDispatcher.java:270) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]

13:42:55,941 INFO [org.jboss.as.clustering.infinispan] (MSC service thread 1-7) JBAS010281: Started default cache from default container
13:42:55,938 WARN [org.infinispan.statetransfer.StateConsumerImpl] (undefined) ISPN000194: Failed loading keys from cache store: org.infinispan.loaders.CacheLoaderException: RemoteCacheStore can only run in shared mode! This method shouldn't be called in shared mode
at org.infinispan.loaders.remote.RemoteCacheStore.loadAllKeys(RemoteCacheStore.java:145) [infinispan-cachestore-remote-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateConsumerImpl.invalidateSegments(StateConsumerImpl.java:823) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateConsumerImpl.onTopologyUpdate(StateConsumerImpl.java:345) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateTransferManagerImpl.doTopologyUpdate(StateTransferManagerImpl.java:177) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateTransferManagerImpl.access$000(StateTransferManagerImpl.java:38) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.statetransfer.StateTransferManagerImpl$1.updateConsistentHash(StateTransferManagerImpl.java:99) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.topology.LocalTopologyManagerImpl.handleConsistentHashUpdate(LocalTopologyManagerImpl.java:191) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.topology.CacheTopologyControlCommand.doPerform(CacheTopologyControlCommand.java:152) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.topology.CacheTopologyControlCommand.perform(CacheTopologyControlCommand.java:124) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at org.infinispan.topology.ClusterTopologyManagerImpl$3.run(ClusterTopologyManagerImpl.java:601) [infinispan-core-6.0.0.Alpha1-redhat-1.jar:6.0.0.Alpha1-redhat-1]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [rt.jar:1.6.0_30]
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [rt.jar:1.6.0_30]
at java.util.concurrent.FutureTask.run(FutureTask.java:138) [rt.jar:1.6.0_30]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final-redhat-1.jar:2.1.0.Final-redhat-1]