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

Allow SERVER Type Alerts To Run For Any Service/Component

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.0.0, 2.6.0
    • Component/s: ambari-server
    • Labels:
      None

      Description

      There is a type of alert known as a "SERVER" alert which is a Java class that runs inside of the Ambari Server. We use these alerts to check for specific issues with the Ambari Server itself.
      However, nothing should prevent a cluster's services from being able to define one of these. Consider the following case where we want a new server-side alert to run for the ZooKeeper Service which checks something specific that none of the agent-side alerts are appropriate for:

      {
        "ZOOKEEPER": {
          "service": [
            {
              "name": "Foo",
              "label": "Foo ZK Alert",
              "description": "Foo",
              "interval": 5,
              "scope": "SERVICE",
              "enabled": true,
              "source": {
                "type": "SERVER",
                "class": "org.apache.ambari.server.alerts.ZKFooChecker"
              }
            }
          ],
        ...
      

        Issue Links

          Activity

          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #8041 (See https://builds.apache.org/job/Ambari-trunk-Commit/8041/)
          AMBARI-21922. Allow SERVER Type Alerts To Run For Any Service/Component (amagyar: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=252e9898c7e68a94924f63549b45af528d15ad14)

          • (edit) ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAOTest.java
          • (edit) ambari-server/src/main/java/org/apache/ambari/server/state/services/AmbariServerAlertService.java
          • (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertDefinitionEntity.java
          • (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAO.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #8041 (See https://builds.apache.org/job/Ambari-trunk-Commit/8041/ ) AMBARI-21922 . Allow SERVER Type Alerts To Run For Any Service/Component (amagyar: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=252e9898c7e68a94924f63549b45af528d15ad14 ) (edit) ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAOTest.java (edit) ambari-server/src/main/java/org/apache/ambari/server/state/services/AmbariServerAlertService.java (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertDefinitionEntity.java (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAO.java
          Hide
          hadoopqa Hadoop QA added a comment -

          -1 overall. Here are the results of testing the latest attachment
          http://issues.apache.org/jira/secure/attachment/12886441/AMBARI-21922.patch
          against trunk revision .

          -1 patch. The patch command could not apply the patch.

          Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/12182//console

          This message is automatically generated.

          Show
          hadoopqa Hadoop QA added a comment - -1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12886441/AMBARI-21922.patch against trunk revision . -1 patch . The patch command could not apply the patch. Console output: https://builds.apache.org/job/Ambari-trunk-test-patch/12182//console This message is automatically generated.
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Jenkins build Ambari-branch-2.6 #195 (See https://builds.apache.org/job/Ambari-branch-2.6/195/)
          AMBARI-21922. Allow SERVER Type Alerts To Run For Any Service/Component (amagyar: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=1a44c51db62b6d806e9d5e6c25353d828ac27edd)

          • (edit) ambari-server/src/main/java/org/apache/ambari/server/state/services/AmbariServerAlertService.java
          • (edit) ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAOTest.java
          • (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertDefinitionEntity.java
          • (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAO.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Jenkins build Ambari-branch-2.6 #195 (See https://builds.apache.org/job/Ambari-branch-2.6/195/ ) AMBARI-21922 . Allow SERVER Type Alerts To Run For Any Service/Component (amagyar: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=1a44c51db62b6d806e9d5e6c25353d828ac27edd ) (edit) ambari-server/src/main/java/org/apache/ambari/server/state/services/AmbariServerAlertService.java (edit) ambari-server/src/test/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAOTest.java (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/entities/AlertDefinitionEntity.java (edit) ambari-server/src/main/java/org/apache/ambari/server/orm/dao/AlertDefinitionDAO.java
          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #8051 (See https://builds.apache.org/job/Ambari-trunk-Commit/8051/)
          AMBARI-21922. Allow SERVER Type Alerts To Run For Any Service/Component (amagyar: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=c6e19b765e80ad7e22ec63cdd4e8004960683466)

          • (edit) ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog260Test.java
          • (edit) ambari-server/src/main/java/org/apache/ambari/server/state/services/AmbariServerAlertService.java
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Jenkins build Ambari-trunk-Commit #8051 (See https://builds.apache.org/job/Ambari-trunk-Commit/8051/ ) AMBARI-21922 . Allow SERVER Type Alerts To Run For Any Service/Component (amagyar: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=c6e19b765e80ad7e22ec63cdd4e8004960683466 ) (edit) ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog260Test.java (edit) ambari-server/src/main/java/org/apache/ambari/server/state/services/AmbariServerAlertService.java

            People

            • Assignee:
              amagyar Attila Magyar
              Reporter:
              amagyar Attila Magyar
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development