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

Alerts: Stack Alerts Should Not Be Merged Into the DB

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: alerts, ambari-server
    • Labels:
      None

      Description

      Initially, it was thought that alerts defined on the stack should be merged into existing alerts in the database on server startup so that changes made to the stack will be updated in the DB.

      However, there is a problem with this approach where editing a stack-based alert from the REST endpoints will be overwritten on the next startup. We could track this state change in the database, but this seems like a v2 feature.

      For v1, let's change the logic so that stack merging into the DB is only done for new alerts detected in alerts.json.

        Issue Links

          Activity

          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-trunk-Commit #492 (See https://builds.apache.org/job/Ambari-trunk-Commit/492/)
          AMBARI-7540 - Alerts: Stack Alerts Should Not Be Merged Into the DB (jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=a42b727260fde066429347f640c4cb1958f712e3)

          • ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HDFS/alerts.json
          • ambari-server/src/test/java/org/apache/ambari/server/api/services/AmbariMetaInfoTest.java
          • ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariMetaInfo.java
          • ambari-agent/src/test/python/ambari_agent/dummy_files/definitions.json
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-trunk-Commit #492 (See https://builds.apache.org/job/Ambari-trunk-Commit/492/ ) AMBARI-7540 - Alerts: Stack Alerts Should Not Be Merged Into the DB (jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=a42b727260fde066429347f640c4cb1958f712e3 ) ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HDFS/alerts.json ambari-server/src/test/java/org/apache/ambari/server/api/services/AmbariMetaInfoTest.java ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariMetaInfo.java ambari-agent/src/test/python/ambari_agent/dummy_files/definitions.json

            People

            • Assignee:
              jonathan.hurley Jonathan Hurley
              Reporter:
              jonathan.hurley Jonathan Hurley
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development