Return-Path: X-Original-To: apmail-incubator-ambari-commits-archive@minotaur.apache.org Delivered-To: apmail-incubator-ambari-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CB2C6CBAD for ; Fri, 21 Jun 2013 17:49:25 +0000 (UTC) Received: (qmail 24943 invoked by uid 500); 21 Jun 2013 17:49:25 -0000 Delivered-To: apmail-incubator-ambari-commits-archive@incubator.apache.org Received: (qmail 24912 invoked by uid 500); 21 Jun 2013 17:49:25 -0000 Mailing-List: contact ambari-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@incubator.apache.org Delivered-To: mailing list ambari-commits@incubator.apache.org Received: (qmail 24901 invoked by uid 99); 21 Jun 2013 17:49:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jun 2013 17:49:25 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jun 2013 17:49:22 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B9F7A2388868; Fri, 21 Jun 2013 17:49:02 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1495518 - in /incubator/ambari/trunk/ambari-web/app: models/service.js views/common/quick_view_link_view.js Date: Fri, 21 Jun 2013 17:49:02 -0000 To: ambari-commits@incubator.apache.org From: jaimin@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130621174902.B9F7A2388868@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jaimin Date: Fri Jun 21 17:49:02 2013 New Revision: 1495518 URL: http://svn.apache.org/r1495518 Log: AMBARI-2459. HBase health status incorrectly showing down (red) when HBase master is up. (jaimin) Modified: incubator/ambari/trunk/ambari-web/app/models/service.js incubator/ambari/trunk/ambari-web/app/views/common/quick_view_link_view.js Modified: incubator/ambari/trunk/ambari-web/app/models/service.js URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/models/service.js?rev=1495518&r1=1495517&r2=1495518&view=diff ============================================================================== --- incubator/ambari/trunk/ambari-web/app/models/service.js (original) +++ incubator/ambari/trunk/ambari-web/app/models/service.js Fri Jun 21 17:49:02 2013 @@ -59,7 +59,7 @@ App.Service = DS.Model.extend({ this.set('healthStatus', 'red-blinking'); } - if (this.get('serviceName') === 'HBASE') { + if (this.get('serviceName') === 'HBASE' && App.supports.multipleHBaseMasters) { var active = this.get('hostComponents').findProperty('haStatus', 'active'); if (!active) { this.set('healthStatus', 'red'); Modified: incubator/ambari/trunk/ambari-web/app/views/common/quick_view_link_view.js URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/views/common/quick_view_link_view.js?rev=1495518&r1=1495517&r2=1495518&view=diff ============================================================================== --- incubator/ambari/trunk/ambari-web/app/views/common/quick_view_link_view.js (original) +++ incubator/ambari/trunk/ambari-web/app/views/common/quick_view_link_view.js Fri Jun 21 17:49:02 2013 @@ -33,14 +33,18 @@ App.QuickViewLinks = Em.View.extend({ } else if (serviceName === 'MAPREDUCE') { host = App.singleNodeInstall ? App.singleNodeAlias : components.findProperty('componentName', 'JOBTRACKER').get('host.publicHostName'); } else if (serviceName === 'HBASE') { - var component = components.filterProperty('componentName', 'HBASE_MASTER').findProperty('haStatus', 'active'); - if(component){ - if(App.singleNodeInstall){ + var component; + if (App.supports.multipleHBaseMasters) { + component = components.filterProperty('componentName', 'HBASE_MASTER').findProperty('haStatus', 'active'); + } else { + component = components.findProperty('componentName', 'HBASE_MASTER'); + } + if (component) { + if (App.singleNodeInstall) { host = App.singleNodeAlias; - }else{ + } else { host = component.get('host.publicHostName'); } - } } if (!host) {