You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Harsh J (JIRA)" <ji...@apache.org> on 2011/09/05 19:48:10 UTC

[jira] [Created] (HDFS-2311) With just 1 block on the HDFS cluster, NN exits safemode on startup immediately.

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