ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hemanth Yamijala (JIRA)" <>
Subject [jira] [Created] (AMBARI-18318) Agent heartbeat handler would always handle 'UNHEALTHY' state as 'UNKNOWN'
Date Tue, 06 Sep 2016 13:39:20 GMT
Hemanth Yamijala created AMBARI-18318:

             Summary: Agent heartbeat handler would always handle 'UNHEALTHY' state as 'UNKNOWN'
                 Key: AMBARI-18318
             Project: Ambari
          Issue Type: Bug
            Reporter: Hemanth Yamijala
            Priority: Minor

>From just looking at the code in {{AgentHeartbeatAlertRunnable}}:

        case UNHEALTHY:
          alertState = AlertState.CRITICAL;
          alertText = MessageFormat.format(UNHEALTHY_MSG, hostName);
          alertState = AlertState.UNKNOWN;
          alertText = MessageFormat.format(UNKNOWN_MSG, hostName, hostState);

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

View raw message