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

Hemanth Yamijala reassigned AMBARI-18318:
-----------------------------------------

    Assignee: Hemanth Yamijala

> Agent heartbeat handler would always handle 'UNHEALTHY' state as 'UNKNOWN'
> --------------------------------------------------------------------------
>
>                 Key: AMBARI-18318
>                 URL: https://issues.apache.org/jira/browse/AMBARI-18318
>             Project: Ambari
>          Issue Type: Bug
>            Reporter: Hemanth Yamijala
>            Assignee: Hemanth Yamijala
>            Priority: Minor
>
> From just looking at the code in {{AgentHeartbeatAlertRunnable}}:
> {code}
>         case UNHEALTHY:
>           alertState = AlertState.CRITICAL;
>           alertText = MessageFormat.format(UNHEALTHY_MSG, hostName);
>         default:
>           alertState = AlertState.UNKNOWN;
>           alertText = MessageFormat.format(UNKNOWN_MSG, hostName, hostState);
> {code}
> Note the missing break between the cases.
> Setting this as Minor, because I don't think the UNHEALTHY state is set 
> anywhere currently. Maybe good to fix just from hygiene perspective.



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

Reply via email to