1 Reply Latest reply on Jul 15, 2015 4:42 AM by rockets

    Timeout sending message to cluster node

    rockets

      Hi,

      I have a cluster with 2 nodes. The infinispan replicated caches are configured with shared DB persistence (sqlserver), deployed in EAP 6.3 Alpha1.

      I got org.jgroups.TimeoutException: timeout sending message to sha-lri-pc-089/modeshape, The exception throwed when try to start the second cluster node .

       

      17:52:33,979 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 63) JBAS010281: Started repository/system cache from modeshape container
      17:52:51,590 ERROR [org.infinispan.interceptors.InvocationContextInterceptor] (ServerService Thread Pool -- 63) ISPN000136: Execution error: org.infinispan.CacheException: org.jgroups.TimeoutException: timeout sending message to sha-lri-pc-089/modeshape
        at org.infinispan.util.Util.rewrapAsCacheException(Util.java:542) [infinispan-core-5.2.8.CR1.jar:5.2.8.CR1]
        at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:186) [infinispan-core-5.2.8.CR1.jar:5.2.8.CR1]
        at org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeRemotely(JGroupsTransport.java:515) [infinispan-core-5.2.8.CR1.jar:5.2.8.CR1]
        at org.infinispan.remoting.rpc.RpcManagerImpl.invokeRemotely(RpcManagerImpl.java:173) [infinispan-core-5.2.8.CR1.jar:5.2.8.CR1]
      
      
      

       

      If I use filestore or different tables in same database to store cache data (sample-cache). it's ok.

      If I use same table for store  cache data (sample-cache) for two nodes. It's failed. following is my cache configuration.

      <cache-container name="modeshape" aliases="modeshape modeshape-cluster" default-cache="sample-cache" module="org.modeshape" start="EAGER">
              <transport lock-timeout="60000"/>
              <replicated-cache name="sample-cache" mode="SYNC" batching="true">
                   <transaction mode="NON_XA" locking="PESSIMISTIC"/>
                   <locking isolation="READ_COMMITTED" acquire-timeout="60000"/>
                   <!-- <file-store relative-to="jboss.server.data.dir" path="modeshape/store/sample" passivation="false" purge="false"/> -->
                   <string-keyed-jdbc-store datasource="java:/datasources/ModeShapeDS" passivation="false" purge="false">
                       <string-keyed-table prefix="ispn">
                            <id-column name="ID_COLUMN" type="NVARCHAR(512)"/>
                            <data-column name="DATA_COLUMN" type="VARBINARY(MAX)"/>
                            <timestamp-column name="TIMESTAMP_COLUMN" type="BIGINT"/>
                       </string-keyed-table>
                  </string-keyed-jdbc-store>
              </replicated-cache>             
      </cache-container>
      <cache-container name="modeshape-binary-cache-container" aliases="modeshape-binary-cache" default-cache="binary-fs" module="org.modeshape" start="EAGER">
             <transport lock-timeout="60000"/>
             <replicated-cache name="sample-binary-fs" mode="SYNC" batching="true">
                  <transaction mode="NON_XA"/>
                  <string-keyed-jdbc-store datasource="java:/datasources/ModeShapeDS" passivation="false" purge="false">
                       <string-keyed-table prefix="ispn">
                            <id-column name="ID_COLUMN" type="NVARCHAR(512)"/>
                            <data-column name="DATA_COLUMN" type="VARBINARY(MAX)"/>
                            <timestamp-column name="TIMESTAMP_COLUMN" type="BIGINT"/>
                       </string-keyed-table>
                  </string-keyed-jdbc-store>
              </replicated-cache>
              <replicated-cache name="sample-binary-fs-meta" mode="SYNC" batching="true">
                   <transaction mode="NON_XA"/>                  
                   <string-keyed-jdbc-store datasource="java:/datasources/ModeShapeDS" passivation="false" purge="false">
                        <string-keyed-table prefix="ispn">
                            <id-column name="ID_COLUMN" type="NVARCHAR(512)"/>
                            <data-column name="DATA_COLUMN" type="VARBINARY(MAX)"/>
                            <timestamp-column name="TIMESTAMP_COLUMN" type="BIGINT"/>
                       </string-keyed-table>
                   </string-keyed-jdbc-store>
             </replicated-cache>             
      </cache-container>
      
      
      

       

      Has anyone seen this error or have any ideas?

      I attached server.log and standalone-ha.xml files. Can any one help me?  Thanks in advance.