Uploaded image for project: 'JBoss Enterprise Application Platform 4 and 5'
  1. JBoss Enterprise Application Platform 4 and 5
  2. JBPAPP-6539

"/ by zero" in ExtendedElectionPolicySimple

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 4.3.0.GA_CP10
    • 4.3.0.GA_CP09
    • Clustering
    • None
    • Release Notes
    • Hide
      A java.lang.ArithmeticException "divide by zero" (/ by zero) error occurred when a clustered singleton service using HASingletonController and an ExtendedElectionPolicySimple election policy was sent a shutdown signal. The / by zero error caused the HASingleton nodes to remain available, instead of shutting down after singleton services to the second node were migrated. Changes to ExtendedElectionPolicyBase#getCandidates have been made that return a null value when no candidates are present, instead of an empty list. The implemented fix now allows HA Singleton nodes to shut down promptly after failover.
      Show
      A java.lang.ArithmeticException "divide by zero" (/ by zero) error occurred when a clustered singleton service using HASingletonController and an ExtendedElectionPolicySimple election policy was sent a shutdown signal. The / by zero error caused the HASingleton nodes to remain available, instead of shutting down after singleton services to the second node were migrated. Changes to ExtendedElectionPolicyBase#getCandidates have been made that return a null value when no candidates are present, instead of an empty list. The implemented fix now allows HA Singleton nodes to shut down promptly after failover.
    • Documented as Resolved Issue
    • ASSIGNED

    Description

      Error when shutting down JBoss with an HASingleton using a custom ExtendedElectionPolicySimple
      that is not deployed on all nodes.

      WARN [HASingletonController] Stopping failed test:service=TestElectionPolicyBug
      java.lang.ArithmeticException: / by zero
      at org.jboss.ha.singleton.ExtendedElectionPolicySimple.elect(ExtendedElectionPolicySimple.java:72)
      at org.jboss.ha.singleton.ExtendedElectionPolicyBase.pickSingleton(ExtendedElectionPolicyBase.java:66)
      at org.jboss.ha.singleton.ExtendedElectionPolicyBase.isElectedMaster(ExtendedElectionPolicyBase.java:72)

      Attachments

        Issue Links

          Activity

            People

              rhn-support-dereed Dennis Reed
              rhn-support-dereed Dennis Reed
              Jared Morgan Jared Morgan (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: