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

Alerts: Send Empty Alert Defintion With Hash To Agents

    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

      When all alerts for a given host have been removed, the NULL MD5 hash should be sent along with an empty array of definitions to each agent affected by the change.

        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-6890 - Alerts: Send Empty Alert Definition With Hash To Agents (jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=72ebd2633bb10b611978cedf81dc34eeb3c9f4eb)

          • ambari-server/src/main/java/org/apache/ambari/server/agent/StatusCommand.java
          • ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertHistoryEntity.java
          • ambari-server/src/main/java/org/apache/ambari/server/agent/AgentCommand.java
          • ambari-server/src/main/java/org/apache/ambari/server/agent/CancelCommand.java
          • ambari-server/src/test/java/org/apache/ambari/server/api/services/AmbariMetaInfoTest.java
          • ambari-server/src/main/java/org/apache/ambari/server/utils/StageUtils.java
          • ambari-server/src/main/java/org/apache/ambari/server/agent/ExecutionCommand.java
          • ambari-server/src/test/resources/stacks/HDP/2.0.5/services/HDFS/alerts.json
          • ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java
          • ambari-server/src/main/java/org/apache/ambari/server/agent/NagiosAlertCommand.java
          • ambari-server/src/test/java/org/apache/ambari/server/utils/TestStageUtils.java
          • ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProviderTest.java
          • ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatResponse.java
          • ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProvider.java
          • ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HDFS/alerts.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-6890 - Alerts: Send Empty Alert Definition With Hash To Agents (jonathanhurley) (jhurley: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=72ebd2633bb10b611978cedf81dc34eeb3c9f4eb ) ambari-server/src/main/java/org/apache/ambari/server/agent/StatusCommand.java ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertHistoryEntity.java ambari-server/src/main/java/org/apache/ambari/server/agent/AgentCommand.java ambari-server/src/main/java/org/apache/ambari/server/agent/CancelCommand.java ambari-server/src/test/java/org/apache/ambari/server/api/services/AmbariMetaInfoTest.java ambari-server/src/main/java/org/apache/ambari/server/utils/StageUtils.java ambari-server/src/main/java/org/apache/ambari/server/agent/ExecutionCommand.java ambari-server/src/test/resources/stacks/HDP/2.0.5/services/HDFS/alerts.json ambari-server/src/test/java/org/apache/ambari/server/controller/AmbariManagementControllerTest.java ambari-server/src/main/java/org/apache/ambari/server/agent/NagiosAlertCommand.java ambari-server/src/test/java/org/apache/ambari/server/utils/TestStageUtils.java ambari-server/src/test/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProviderTest.java ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatResponse.java ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProvider.java ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HDFS/alerts.json
          Hide
          jonathan.hurley Jonathan Hurley added a comment -

          Example of an AlertDefinitionCommand with no definitions for this host:

          {  
             'alertDefinitionCommands':[  
                {  
                   'alertDefinitions':[ ],
                   'clusterName':'c1',
                   'commandType':'ALERT_DEFINITION_COMMAND',
                   'hash':'37a6259cc0c1dae299a7866489dff0bd',
                   'hostName':'c6404.ambari.apache.org'
                }
             ]
          }
          

          Note that 37a6259cc0c1dae299a7866489dff0bd represnts the NULL MD5 hash.

          Show
          jonathan.hurley Jonathan Hurley added a comment - Example of an AlertDefinitionCommand with no definitions for this host: { 'alertDefinitionCommands':[ { 'alertDefinitions':[ ], 'clusterName':'c1', 'commandType':'ALERT_DEFINITION_COMMAND', 'hash':'37a6259cc0c1dae299a7866489dff0bd', 'hostName':'c6404.ambari.apache.org' } ] } Note that 37a6259cc0c1dae299a7866489dff0bd represnts the NULL MD5 hash.

            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