[ 
https://issues.apache.org/jira/browse/HDFS-2002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13039447#comment-13039447
 ] 

Konstantin Shvachko commented on HDFS-2002:
-------------------------------------------

In case there are 3 blocks in the system with the default threshold 0.9990, and 
with no replicas reported yet the safemode tip says:
_*{{Safe mode is ON. The reported blocks 0 needs additional 2 blocks to reach 
the threshold 0.9990 of total blocks 3. Safe mode will be turned off 
automatically.}}*_
While it should report one more _*{{needs additional 3 blocks}}*_.

And when the threshold is set larger than one, say 1.5, the numbers don't make 
any sense at all.

> Incorrect computation of needed blocks in getTurnOffTip()
> ---------------------------------------------------------
>
>                 Key: HDFS-2002
>                 URL: https://issues.apache.org/jira/browse/HDFS-2002
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: name-node
>    Affects Versions: 0.22.0
>            Reporter: Konstantin Shvachko
>             Fix For: 0.22.0
>
>
> {{SafeModeInfo.getTurnOffTip()}} under-reports the number of blocks needed to 
> reach the safemode threshold.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to