3 Replies Latest reply on Nov 10, 2008 10:49 AM by Mohit Anchlia

    How does the Election Policy Feature work in 4.2.X

    Ronald Trask Newbie

      I recently had a problem with no node wanting to become the master. As I investigated the issue I found that there was a back port from 5.0 of a mechanism to control the election policy, but I have found no information about how to use this feature. Below is a snipit from an earlier post on this topic that got burried in the other issue, and desrves an independent post.

      ---------------------------------------------------------------------------

      I thought that the problem could be related to the org.jboss.ha.singleton.HASingletonElectionPolicy feature which was back ported from 5.0,
      see: http://jira.jboss.com/jira/browse/JBAS-3636

      This attribute shows up under the MBean attributes of org.jboss.ha.singleton.HASingletonController from the JMX console, but despite showing the attribute as read / write, you can not change the value. Attempts to set the the value in the deploy/deploy-hasingleton-service.xml file result in a property editor exception.

      There is some method that I am not aware of that they have used to test this functionality out in JBoss' test suit, (for example http://www.ohloh.net/projects/480/contributors/26897/commits/6569686 )