Exceptions are logged after failover in a high-availability deployment
Issue:
After a failover to the standby server in a high-availability deployment of the TrueSight Presentation Server, exceptions related to replication are logged. These exceptions are of the following format:
org.infinispan.commons.CacheException: Problems invoking command.
java.lang.ClassCastException: ... cannot be cast to org.infinispan.metadata.Metadata
org.infinispan.commons.CacheException: java.lang.RuntimeException: Failure to marshal argument(s)
at org.infinispan.commons.util.Util.rewrapAsCacheException(Util.java:657)
at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:250)
Resolution:
- Stop the standby node first and then stop the active node.
- Log on to the primary host computer.
- Take a backup of the installedDirectory\TrueSightPServer\truesightpserver\conf\ha\cache.conf file.
Using a text editor, edit and replace the <replicated-cache> tag in the cache.conf file with the following content:
<replicated-cache name="defaultCache" mode="SYNC" remote-timeout="30000">
<state-transfer await-initial-transfer="false"
timeout="240000"
enabled="true"
chunk-size="10000"
/>
<locking concurrency-level="1000"
striping="true"
isolation="READ_COMMITTED"
write-skew="false"
/>
</replicated-cache>- Save the cache.conf file.
- Log on to the secondary host computer and perform steps 3 - 5.
- Restart the previously active node first.
- Ensure that the node is completely up and running and then restart the standby node.
Related topic