Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-18318

Agent heartbeat handler would always handle 'UNHEALTHY' state as 'UNKNOWN'

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.2.2
    • trunk, 2.4.1
    • None
    • None

    Description

      From just looking at the code in AgentHeartbeatAlertRunnable:

              case UNHEALTHY:
                alertState = AlertState.CRITICAL;
                alertText = MessageFormat.format(UNHEALTHY_MSG, hostName);
              default:
                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.

      Attachments

        1. AMBARI-18318.patch
          3 kB
          Hemanth Yamijala

        Issue Links

          Activity

            People

              yhemanth Hemanth Yamijala
              yhemanth Hemanth Yamijala
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: