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:

  1. Stop the standby node first and then stop the active node.
  2. Log on to the primary host computer.
  3. Take a backup of the installedDirectory\TrueSightPServer\truesightpserver\conf\ha\cache.conf file.
  4. 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>


  5. Save the cache.conf file.
  6. Log on to the secondary host computer and perform steps 3 - 5.
  7. Restart the previously active node first.
  8. Ensure that the node is completely up and running and then restart the standby node.

Related topic

Troubleshooting

Was this page helpful? Yes No Submitting... Thank you

Comments