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

Metrics monitor fails on restart

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.2.1
    • 2.2.2
    • ambari-metrics
    • None

    Description

      PROBLEM
      Metrics Monitor failed to START at install on 1 host. Restart also never worked.

      BUG
      Ambari metrics monitor startup script had a stale pid file with value as 327, and it used "ps ax -o pid | grep <pid>" to check if the process is running. This returned true since there was a process with process Id = 3327. Hence, the script always assumed that the metric monitor process was already running.

      FIX
      Change to use grep exact match (grep -w) while checking for process with process ID.

      Attachments

        1. AMBARI-15063.patch
          2 kB
          Aravindan Vijayan

        Issue Links

          Activity

            People

              avijayan Aravindan Vijayan
              avijayan Aravindan Vijayan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: