[jboss-jira] [JBoss JIRA] Updated: (JBAS-6363) HASingletonDeployer Barrier never moves beyond the create state

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Tue Jan 20 23:41:04 EST 2009


     [ https://jira.jboss.org/jira/browse/JBAS-6363?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry updated JBAS-6363:
-----------------------------------

    Workaround Description: 
Add a dependency on the BarrierController to the jboss.ha.service=HASingletonDeployer:

<bean name="HASingletonDeployer" 
   		 class="org.jboss.ha.singleton.HASingletonController">        
      ....
      <!-- Have the BarrierController that listens for our JMX 
           notifications start first. -->
      <depends>HASingletonDeployerBarrierController</depends>
 
Then set "dynamicSubscriptions to "true" on the BarrierController bean:

<bean class="org.jboss.system.BarrierController"
          name="HASingletonDeployerBarrierController">    
      <annotation>@org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss.ha:service=HASingletonDeployer,type=BarrierControllerMBean", exposedInterface=org.jboss.system.BarrierControllerMBean.class, registerDirectly=true)</annotation> 
            
      <!-- Dependent services will depend on this mbean -->
      <property name="barrierObjectName">jboss.ha:service=HASingletonDeployer,type=Barrier</property>
    
      <!-- Subscribe for notifications after startup since we start
           before the HASingletonDeployer. -->
      <property name="dynamicSubscriptions">true</property>   

     .....

This combo ensures the BarrierController always gets the initial JMX notiication when the HASingletonDeployer starts and becomes master.

  was:
Add a dependency on the jboss.ha.service=HASingletonDeployer to the BarrierController:

<bean class="org.jboss.system.BarrierController" name="jboss.ha:service=HASingletonDeployer,type=BarrierController">
   ...
       <depends>jboss.ha:service=HASingletonDeployer</depends>
   ...




Updated the workaround, as testing as part of the fix showed the earlier version didn't work.

> HASingletonDeployer Barrier never moves beyond the create state
> ---------------------------------------------------------------
>
>                 Key: JBAS-6363
>                 URL: https://jira.jboss.org/jira/browse/JBAS-6363
>             Project: JBoss Application Server
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Clustering
>    Affects Versions: JBossAS-5.0.0.GA
>            Reporter: Brian Stansberry
>            Assignee: Brian Stansberry
>             Fix For: JBossAS-5.0.1.GA
>
>
> BarrierController tries to subscribe to jmx notifications from HASingletonDeployer before the latter is registered. This fails, so the controller doesn't get the needed JMX notifications and the barrier never gets brought to start.
> See the forum thread for details.
> Fix is to add a dependency. See the Workaround.
> Thanks to zana for the report!

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list