Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-9389

"/ by zero" in ExtendedElectionPolicySimple

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • JBossAS-4.2.3.GA
    • Clustering
    • None
    • Hide

      Deploy attached test-service.xml on one node of a 2-node cluster.
      Start both nodes.
      Shut down the node containing test-service.xml.

      Show
      Deploy attached test-service.xml on one node of a 2-node cluster. Start both nodes. Shut down the node containing test-service.xml.

    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
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: