With just 1 block on the HDFS cluster, NN exits safemode on startup immediately.
--------------------------------------------------------------------------------

                 Key: HDFS-2311
                 URL: https://issues.apache.org/jira/browse/HDFS-2311
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: name-node
    Affects Versions: 0.20.203.0
            Reporter: Harsh J
            Priority: Minor


This is cause:

(int) ((1 Block) * (0.999f Threshold Default Pct)) == 0, in which case 
SafeModeInfo's checks of modes makes an simple, direct exit of the safemode.

Faulty code is possibly in FSNamesystem#setBlockTotal. This is a non major 
issue since with 2 blocks it would work fine, and will work fine with 1.0f 
Threshold Pct too.

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

        

Reply via email to