2 Replies Latest reply on Jan 3, 2014 9:36 AM by Andy Taylor

    Cluster is not working on same machine with two nodes

    indra yadav Newbie

      I have created cluster environment using JBOSS 6.1.0 final with two nodes

       

      when i start or shutdown both of one they notify each other but do not process the request of  closed node

       

      when i shutdown a node it throws -

       

      19:31:24,847 WARN  [org.hornetq.core.protocol.core.impl.RemotingConnectionImpl] Connection failure has been detected: The connection was disconnected because of server shutdown [code=4]

      19:31:24,848 WARN  [org.hornetq.core.server.cluster.impl.BridgeImpl] sf.my-cluster.37b120b9-7469-11e3-8dfe-4c72b94f057b::Connection failed before reconnect : HornetQException[errorCode=4 message=The connection was disconnected because of server shutdown]

        at org.hornetq.core.client.impl.ClientSessionFactoryImpl$Channel0Handler$1.run(ClientSessionFactoryImpl.java:1262) [:6.1.0.Final]

        at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100) [:6.1.0.Final]

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_35]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_35]

        at java.lang.Thread.run(Thread.java:662) [:1.6.0_35]

       

      19:31:24,969 WARN  [org.jgroups.protocols.pbcast.NAKACK] 192.168.2.105:1199: dropped message from localhost:1099 (not in table [192.168.2.105:1199]), view=[192.168.2.105:1199|4] [192.168.2.105:1199]

      19:31:25,271 INFO  [org.jboss.ha.framework.server.ClusterPartition.lifecycle.DocsPartition] New cluster view for partition DocsPartition (id: 4, delta: -1, merge: false) : [192.168.2.105:1199]

      19:31:25,271 INFO  [org.jboss.ha.core.framework.server.DistributedReplicantManagerImpl.DocsPartition] I am (192.168.2.105:1199) received membershipChanged event:

      19:31:25,271 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] Received new cluster view: [192.168.2.105:1199|4] [192.168.2.105:1199]

      19:31:25,272 INFO  [org.jboss.ha.core.framework.server.DistributedReplicantManagerImpl.DocsPartition] Dead members: 1 ([localhost:1099])

      19:31:25,272 INFO  [org.jboss.ha.core.framework.server.DistributedReplicantManagerImpl.DocsPartition] New Members : 0 ([])

      19:31:25,272 INFO  [org.jboss.ha.core.framework.server.DistributedReplicantManagerImpl.DocsPartition] All Members : 1 ([192.168.2.105:1199])

       

       

       

      And when i again start the closed node it throws -

       

      19:32:27,474 WARN  [org.hornetq.core.server.cluster.impl.BridgeImpl] sf.my-cluster.37b120b9-7469-11e3-8dfe-4c72b94f057b::Connection failed with failedOver=true: HornetQException[errorCode=4 message=The connection was disconnected because of server shutdown]

        at org.hornetq.core.client.impl.ClientSessionFactoryImpl$Channel0Handler$1.run(ClientSessionFactoryImpl.java:1262) [:6.1.0.Final]

        at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100) [:6.1.0.Final]

        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_35]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_35]

        at java.lang.Thread.run(Thread.java:662) [:1.6.0_35]

       

       

      19:32:27,581 WARN  [org.hornetq.core.protocol.core.impl.ChannelImpl] Can't find packet to clear:  last received command id 2 first stored command id 2

      19:32:27,593 WARN  [org.hornetq.core.protocol.core.impl.ChannelImpl] Can't find packet to clear:  last received command id 3 first stored command id 3

      19:32:27,596 WARN  [org.hornetq.core.protocol.core.impl.ChannelImpl] Can't find packet to clear:  last received command id 4 first stored command id 4

      19:32:27,601 WARN  [org.hornetq.core.protocol.core.impl.ChannelImpl] Can't find packet to clear:  last received command id 5 first stored command id 5

      19:32:28,055 INFO  [org.jboss.ha.framework.server.ClusterPartition.lifecycle.DocsPartition] New cluster view for partition DocsPartition (id: 5, delta: 1, merge: false) : [192.168.2.105:1199, localhost:1099]

      19:32:28,056 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] Received new cluster view: [192.168.2.105:1199|5] [192.168.2.105:1199, localhost:1099]

      19:32:28,056 INFO  [org.jboss.ha.core.framework.server.DistributedReplicantManagerImpl.DocsPartition] I am (192.168.2.105:1199) received membershipChanged event:

      19:32:28,056 INFO  [org.jboss.ha.core.framework.server.DistributedReplicantManagerImpl.DocsPartition] Dead members: 0 ([])

      19:32:28,056 INFO  [org.jboss.ha.core.framework.server.DistributedReplicantManagerImpl.DocsPartition] New Members : 1 ([localhost:1099])

      19:32:28,056 INFO  [org.jboss.ha.core.framework.server.DistributedReplicantManagerImpl.DocsPartition] All Members : 2 ([192.168.2.105:1199, localhost:1099])

      19:32:31,650 WARN  [org.hornetq.core.cluster.impl.DiscoveryGroupImpl] There are more than one servers on the network broadcasting the same node id. You will see this message exactly once (per node) if a node is restarted, in which case it can be safely ignored. But if it is logged continuously it means you really do have more than one node on the same network active concurrently with the same node id. This could occur if you have a backup node active at the same time as its live node. nodeID=37b120b9-7469-11e3-8dfe-4c72b94f057b

       

       

       

       

      and after closing the a node i request for it second node do not process the request

       

       

      Please help me

      Thanks