You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Yevhenii Pazii (JIRA)" <ji...@apache.org> on 2016/02/17 16:55:18 UTC

[jira] [Updated] (AMQ-6172) Broker Health check status never updates

     [ https://issues.apache.org/jira/browse/AMQ-6172?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yevhenii Pazii updated AMQ-6172:
--------------------------------
    Description: 
Method getCurrentStatus of HealthViewMBean class never changes status even if broker have critical conditions. No matter how this methods calls through JMX or jolokia.

Method returns instance field without any calculations. 
{quote}
    public String getCurrentStatus() \{
        return this.currentState;
    }
{quote}

The method which actually updates this field is  "List<HealthStatus> healthList() throws Exception;". As far as I know no one else call this method, so status field never updates. This method works fine by JMX, but it doesn't exposed to jolokia for Rest calls.

  was:
Method getCurrentStatus of HealthViewMBean class never changes status even if broker have critical conditions. No matter how this methods calls through JMX or jolokia.

Method returns instance field without any calculations. 
{quote}
    public String getCurrentStatus() \{
        return this.currentState;
    }
{quote}

The method with actually updates this field is  "List<HealthStatus> healthList() throws Exception;". As far as I know no one else call this method, so status field never updates. This method works fine by JMX, but it doesn't exposed to jolokia for Rest calls.


> Broker Health check status never updates
> ----------------------------------------
>
>                 Key: AMQ-6172
>                 URL: https://issues.apache.org/jira/browse/AMQ-6172
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.13.1
>            Reporter: Yevhenii Pazii
>
> Method getCurrentStatus of HealthViewMBean class never changes status even if broker have critical conditions. No matter how this methods calls through JMX or jolokia.
> Method returns instance field without any calculations. 
> {quote}
>     public String getCurrentStatus() \{
>         return this.currentState;
>     }
> {quote}
> The method which actually updates this field is  "List<HealthStatus> healthList() throws Exception;". As far as I know no one else call this method, so status field never updates. This method works fine by JMX, but it doesn't exposed to jolokia for Rest calls.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)