[
https://issues.apache.org/jira/browse/AMBARI-12285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14615399#comment-14615399
]
Hudson commented on AMBARI-12285:
---------------------------------
SUCCESS: Integrated in Ambari-branch-2.1 #170 (See
[https://builds.apache.org/job/Ambari-branch-2.1/170/])
AMBARI-12285 - Alerts: HDFS Capacity Utilization Alert Always Shows 0%
(jonathanhurley) (jhurley:
http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=0be15fa3c9d90a5e56bd4616d814858f905677a8)
*
ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
* ambari-agent/src/main/python/ambari_agent/alerts/metric_alert.py
* ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/HDFS/alerts.json
* ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/alerts.json
* ambari-agent/src/test/python/ambari_agent/TestAlerts.py
> Alerts: HDFS Capacity Utilization Alert Always Shows 0%
> -------------------------------------------------------
>
> Key: AMBARI-12285
> URL: https://issues.apache.org/jira/browse/AMBARI-12285
> Project: Ambari
> Issue Type: Bug
> Components: ambari-agent
> Affects Versions: 2.0.0
> Reporter: Jonathan Hurley
> Assignee: Jonathan Hurley
> Priority: Critical
> Fix For: 2.1.0
>
> Attachments: AMBARI-12285.patch
>
>
> Some alerts, such as the HDFS capacity or DataNode capacity always show a
> utilization of 0%, preventing any alert from triggering since the state is
> always OK.
> This is due to integer division which causes the float percentage to be
> rounded down to 0.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)