1 Reply Latest reply on May 14, 2003 1:51 AM by Sacha Labourey

    removing replicants from drm ?

    micha Newbie

      Hi!
      I have some problems in using the DistributedReplicantManager. The cluster I use consists of three linux boxes, all using JBoss 3.0.6. As soon as one server goes down, the drm tries to erase the replicants that were running on the died node (method purgeDeadMembers). However it seems , that the replicant's key that is used can vary - e.g host, or hostname.domain, or just an ip address (see example below).

      purgeDeadMembers:
      10:00:19,849 DEBUG [UserPartition:ReplicantManager] Key = ProfilingInformation
      10:00:19,849 DEBUG [UserPartition:ReplicantManager] replicant = {MY_IP:33441=ProfilingInformation:
      Host: db4721 // Partition: UserPartition, db4741:36156=ProfilingInformation:
      Host: db4741.mydomain // Partition: UserPartition}
      10:00:19,849 DEBUG [UserPartition:ReplicantManager] Currently known replicants:
      10:00:19,849 DEBUG [UserPartition:ReplicantManager] replicant 1
      10:00:19,849 DEBUG [UserPartition:ReplicantManager] key = ProfilingInformation
      10:00:19,849 DEBUG [UserPartition:ReplicantManager] value = {MY_IP21:33441=ProfilingInformation:
      Host: db4721 // Partition: UserPartition, db4741:36156=ProfilingInformation:
      Host: db4741.mydomain // Partition: UserPartition}
      10:00:19,850 DEBUG [UserPartition:ReplicantManager] replicant 2
      10:00:19,850 DEBUG [UserPartition:ReplicantManager] key = jboss.j2ee:jndiName=UserAdministrationTestHomeRemote,service=EJB
      10:00:19,850 DEBUG [UserPartition:ReplicantManager] value = {MY_IP21:33441=org.jboss.invocation.jrmp.server.JRMPInvoker_Stub[RemoteStub [ref: [endpoint:[MY_IP21:40026](remote),objID:[f47396:f50764c1d6:-8000, 6]]]], db4741:36156=org.jboss.invocation.jrmp.server.JRMPInvoker_Stub[RemoteStub [ref: [endpoint:[MY_IP41:42218](remote),objID:[11671b2:f506c22bbd:-8000, 6]]]]}
      10:00:19,850 DEBUG [UserPartition:ReplicantManager] replicant 3
      10:00:19,850 DEBUG [UserPartition:ReplicantManager] key = jboss.j2ee:jndiName=MappingTestHomeRemote,service=EJB
      10:00:19,850 DEBUG [UserPartition:ReplicantManager] value = {MY_IP21:33441=org.jboss.invocation.jrmp.server.JRMPInvoker_Stub[RemoteStub [ref: [endpoint:[MY_IP21:40026](remote),objID:[f47396:f50764c1d6:-8000, 6]]]], db4741:36156=org.jboss.invocation.jrmp.server.JRMPInvoker_Stub[RemoteStub [ref: [endpoint:[MY_IP41:42218](remote),objID:[11671b2:f506c22bbd:-8000, 6]]]]}

      10:00:19,850 DEBUG [UserPartition:ReplicantManager] trying to remove deadMember db4721:33441 for key ProfilingInformation
      db4721:33441 was NOT removed!!!

      As you can see, one time the ip is used as key, the other time the host name. As a result the replicants are not removed and the drm works with an outdated list of replicants.
      It might be that this is just a dns configuration problem, but is there a more general approach to prevent such ambiguity?

      Can anybody help?

      Thanks Micha