6 Replies Latest reply on Jul 30, 2003 2:15 AM by slaboure

    isMasterReplica - Distributed Replicant Manager

    darranl

      I have been investigating implementing a service to run on all of the nodes in my cluster but where only one of the nodes is the master.

      I have been using the distributed replicant manager to register the service and the isMasterReplica method to identify a master node.

      At the moment I have two nodes in the cluster, both call add on the DRM with the same key.

      On both nodes I then call isMasterReplica with the key used earlier and both nodes return true.

      I have had a look at the isMasterReplica method and I can see why this is happening:-

      A Vector of all active nodes is obtained from the partition by calling getCurrentView.

      A Vector is obtained containing the nodes replicating the item.

      I added some debug messages to the method so that I could test what was happening and I have found that for some reason one of my nodes in the Vector returned by the partition has had it's name converted to upper case. The Vector containing the nodes replicating the item contains the name in lower case.

      This was using JBoss 3.2.1 with Sun JDK 1.4.1_03.

      The machine what had the case of it's name changed is a RedHat 7.3 machine, does anyone know what might be causing the name to be changed.