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

Alerts: Calculate Hash Based On Alert Definitions

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: None
    • Labels:
      None

      Description

      A "meta hash" will be used to track the state of the alert definitions for a given host. Each host will have all of the alert definitions that should be running on it represented by a single hash of all of the definition GUIDs.

      The hash will be sent in each heartbeat response. It will be calculated and kept in memory in Map<Host,Hash>.

        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-6853 - Alerts: Calculate Hash Based On Alert Definitions (jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=93e61c0badb99995b7cbac5e8a6c159eab446735)

          • ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProviderTest.java
          • ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProvider.java
          • ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinitionHash.java
          • ambari-server/src/main/resources/properties.json
          • ambari-server/src/test/java/org/apache/ambari/server/state/alerts/AlertDefinitionHashTest.java
          • ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAO.java
          • ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAOTest.java
          • ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatResponse.java
          • ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatHandler.java
          • ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertDefinitionEntity.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-trunk-Commit #492 (See https://builds.apache.org/job/Ambari-trunk-Commit/492/ ) AMBARI-6853 - Alerts: Calculate Hash Based On Alert Definitions (jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=93e61c0badb99995b7cbac5e8a6c159eab446735 ) ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProviderTest.java ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProvider.java ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinitionHash.java ambari-server/src/main/resources/properties.json ambari-server/src/test/java/org/apache/ambari/server/state/alerts/AlertDefinitionHashTest.java ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAO.java ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAOTest.java ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatResponse.java ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatHandler.java ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertDefinitionEntity.java

            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