Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2DA9C17ED2 for ; Tue, 7 Oct 2014 15:09:46 +0000 (UTC) Received: (qmail 50843 invoked by uid 500); 7 Oct 2014 15:09:37 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 50805 invoked by uid 500); 7 Oct 2014 15:09:37 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 50337 invoked by uid 99); 7 Oct 2014 15:09:37 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Oct 2014 15:09:37 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 91AC01DDCD2; Tue, 7 Oct 2014 15:09:33 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============1844181573659948845==" MIME-Version: 1.0 Subject: Review Request 26412: Alerts: Service-level Definitions Should Be Processed by the Service Master From: "Jonathan Hurley" To: "Nate Cole" , "Tom Beerbower" Cc: "Ambari" , "Jonathan Hurley" Date: Tue, 07 Oct 2014 15:09:33 -0000 Message-ID: <20141007150933.15371.18763@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org Auto-Submitted: auto-generated Sender: "Jonathan Hurley" X-ReviewGroup: Ambari X-ReviewRequest-URL: https://reviews.apache.org/r/26412/ X-Sender: "Jonathan Hurley" Reply-To: "Jonathan Hurley" X-ReviewRequest-Repository: ambari --===============1844181573659948845== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/26412/ ----------------------------------------------------------- Review request for Ambari, Nate Cole and Tom Beerbower. Bugs: AMBARI-7673 https://issues.apache.org/jira/browse/AMBARI-7673 Repository: ambari Description ------- The actual issue is that AGGREGATE alerts were attempting to be scheduled on the service masters. AGGREGATE type alerts should not trigger hash invalidations. Diffs ----- ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertDefinitionResourceProvider.java e4aa22241d123ae48d367eb2b1baf58d2e628e12 ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinitionHash.java 10cd54ab0836e5e8cde7b4b29dba9b15fdf932ed ambari-server/src/test/java/org/apache/ambari/server/state/alerts/AlertDefinitionHashTest.java 412b4d35bd74a8229f98094ea23b74f1f3a0de50 Diff: https://reviews.apache.org/r/26412/diff/ Testing ------- Added a test to verify that: - AGGREGATE alerts don't trigger hash invalidations - Definitions that are service-level do cause a host invalidation Existing tests are busted (see https://builds.apache.org/job/Ambari-trunk-Commit/). I ran the tests anyway and verified that the same ones failed, so there should not be more regressions from my changes. Once trunk is fixed, I'll re-run the tests and push (assuming I get +1's on the changes). Thanks, Jonathan Hurley --===============1844181573659948845==--