3 Replies Latest reply on Aug 22, 2007 9:51 AM by Brian Stansberry

    Buddy Replication

    Fredrik Johansson Newbie

      We get the following stack trace when starting up the cache with buddy replication enabled and can't really understand why.

      2007-08-21 21:27:49,849 Incoming Thread,TableSpace,172.16.0.5:8786 INFO space.jboss.ExtendedCache.TableSpace - viewAccepted(): [172.16.0.5:8786|1] [172.16.0.5:8786, 172.16.0.6:8786]
      
      2007-08-21 21:27:49,849 AsyncViewChangeHandlerThread,172.16.0.5:8786 DEBUG jboss.cache.buddyreplication.BuddyManager - Instance 172.16.0.5:8786 broadcasting membership in buddy pool BuddyPool to recipients null
      
      2007-08-21 21:27:49,851 AsyncViewChangeHandlerThread,172.16.0.5:8786 ERROR jboss.cache.buddyreplication.BuddyManager - Problems broadcasting buddy pool membership info to cluster
      java.lang.RuntimeException: failed executing request [req_id=1187724469850
      caller=172.16.0.5:8786
      172.16.0.6:8786: sender=172.16.0.6:8786, retval=null, received=false, suspected=false
      
      request_msg: [dst: <null>, src: <null> (1 headers), size=41 bytes]
      rsp_mode: GET_ALL
      done: true
      timeout: 2000
      expected_mbrs: 0 ([172.16.0.6:8786])]
       at org.jgroups.blocks.MessageDispatcher.castMessage(MessageDispatcher.java:433)
       at org.jgroups.blocks.RpcDispatcher.callRemoteMethods(RpcDispatcher.java:199)
       at org.jgroups.blocks.RpcDispatcher.callRemoteMethods(RpcDispatcher.java:167)
       at org.jboss.cache.CacheImpl.callRemoteMethods(CacheImpl.java:2093)
       at org.jboss.cache.CacheImpl.callRemoteMethods(CacheImpl.java:2023)
       at org.jboss.cache.RPCManagerImpl.callRemoteMethods(RPCManagerImpl.java:55)
       at org.jboss.cache.buddyreplication.BuddyManager.makeRemoteCall(BuddyManager.java:929)
       at org.jboss.cache.buddyreplication.BuddyManager.broadcastBuddyPoolMembership(BuddyManager.java:904)
       at org.jboss.cache.buddyreplication.BuddyManager.broadcastBuddyPoolMembership(BuddyManager.java:888)
       at org.jboss.cache.buddyreplication.BuddyManager.access$800(BuddyManager.java:56)
       at org.jboss.cache.buddyreplication.BuddyManager$AsyncViewChangeHandlerThread.broadcastPoolMembership(BuddyManager.java:1080)
       at org.jboss.cache.buddyreplication.BuddyManager$AsyncViewChangeHandlerThread.handleEnqueuedViewChange(BuddyManager.java:1054)
       at org.jboss.cache.buddyreplication.BuddyManager$AsyncViewChangeHandlerThread.run(BuddyManager.java:1020)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.IllegalArgumentException: 172.16.0.6:8786 is not a member of the group [172.16.0.5:8786] (enabled_members=[])
       at org.jgroups.protocols.UNICAST.down(UNICAST.java:301)
       at org.jgroups.protocols.pbcast.STABLE.down(STABLE.java:317)
       at org.jgroups.protocols.pbcast.GMS.down(GMS.java:782)
       at org.jgroups.protocols.FRAG.down(FRAG.java:138)
       at org.jgroups.protocols.pbcast.STATE_TRANSFER.down(STATE_TRANSFER.java:221)
       at org.jgroups.stack.ProtocolStack.down(ProtocolStack.java:339)
       at org.jgroups.JChannel.downcall(JChannel.java:1240)
       at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.down(MessageDispatcher.java:752)
       at org.jgroups.blocks.RequestCorrelator.sendRequest(RequestCorrelator.java:297)
       at org.jgroups.blocks.GroupRequest.doExecute(GroupRequest.java:440)
       at org.jgroups.blocks.GroupRequest.execute(GroupRequest.java:190)
       at org.jgroups.blocks.MessageDispatcher.castMessage(MessageDispatcher.java:430)
       ... 13 more
      


      It seems that the view is changed and accepted,
      viewAccepted(): [172.16.0.5:8786|1] [172.16.0.5:8786, 172.16.0.6:8786]
      But then the buddy manager fails to send a message since unicast does not acknowledge the member.

      Any help would be appreciated!