You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Jaimin Jetly <ja...@hortonworks.com> on 2016/03/02 17:43:30 UTC

Re: Review Request 38095: Ambari UI shows "Corrupted Blocks" but it is "Corrupted replica"

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


Ship it!




Ship It!

- Jaimin Jetly


On Feb. 16, 2016, 11:54 a.m., Oliver Szabo wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/38095/
> -----------------------------------------------------------
> 
> (Updated Feb. 16, 2016, 11:54 a.m.)
> 
> 
> Review request for Ambari, Daniel Gergely, Jaimin Jetly, Laszlo Puskas, and Yusaku Sako.
> 
> 
> Bugs: AMBARI-12931
>     https://issues.apache.org/jira/browse/AMBARI-12931
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> Problem:
> 
> - Corrupted Block metric on the UI means corrupted replicas. 
> 
> Solution:
> 
> - In fact this metric comes from hadoop: 
>  
>   FSNamesystem.java:
>   
>   @Metric({"CorruptBlocks", "Number of blocks with corrupt replicas"})
>   public long getCorruptReplicaBlocks() {
>     return blockManager.getCorruptReplicaBlocksCount();
>   }
> - Because of that "CorruptedBlock" references are correct on the ambari side. I suggest only UI change, what clarifies the definition.
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog240.java 2ea326a 
>   ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/widgets.json 7e93a6e 
>   ambari-server/src/main/resources/stacks/HDP/2.3/services/HDFS/widgets.json 1010128 
>   ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog240Test.java 608a348 
>   ambari-web/app/assets/data/widget_layouts/HDFS_SUMMARY.json a97c9e5 
>   ambari-web/app/messages.js 08ff073 
> 
> Diff: https://reviews.apache.org/r/38095/diff/
> 
> 
> Testing
> -------
> 
> Unit testing done.
> 
> 
> Thanks,
> 
> Oliver Szabo
> 
>