ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower" <tbeerbo...@hortonworks.com>
Subject Re: Review Request 36190: Alerts: HDFS Capacity Utilization Alert Always Shows 0%
Date Mon, 06 Jul 2015 15:44:44 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/36190/#review90487
-----------------------------------------------------------

Ship it!


Ship It!

- Tom Beerbower


On July 6, 2015, 3:58 a.m., Jonathan Hurley wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/36190/
> -----------------------------------------------------------
> 
> (Updated July 6, 2015, 3:58 a.m.)
> 
> 
> Review request for Ambari, Nate Cole and Tom Beerbower.
> 
> 
> Bugs: AMBARI-12285
>     https://issues.apache.org/jira/browse/AMBARI-12285
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> 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.
> 
> 
> Diffs
> -----
> 
>   ambari-agent/src/main/python/ambari_agent/alerts/metric_alert.py fea2f6c 
>   ambari-agent/src/test/python/ambari_agent/TestAlerts.py 4570842 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
47ddd7a 
>   ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/alerts.json 4e62eab

>   ambari-server/src/main/resources/stacks/BIGTOP/0.8/services/HDFS/alerts.json cee8209

> 
> Diff: https://reviews.apache.org/r/36190/diff/
> 
> 
> Testing
> -------
> 
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD SUCCESS
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 22.140 s
> [INFO] Finished at: 2015-07-05T22:34:46-04:00
> [INFO] Final Memory: 13M/245M
> [INFO] ------------------------------------------------------------------------
> 
> 
> Thanks,
> 
> Jonathan Hurley
> 
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message