Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13295

Namenode doesn't leave safemode if dfs.namenode.safemode.replication.min set < dfs.namenode.replication.min

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • namenode
    • None

    Description

      When we set dfs.namenode.safemode.replication.min < dfs.namenode.replication.min from HDFS-8716 patch the number of replica for which it will increase the safe block count
      must be equal to dfs.namenode.safemode.replication.min in `FSNamesystem.incrementSafeBlockCount`

      When reading modification from edits, the replica number for new blocks is set at min(numNodes,
      dfs.namenode.replication.min) in BlockManager.completeBlock which is greater than dfs.namenode.safemode.replication.min.
      Due to that safe block count never reach number of available blocks and namenode doesn't leave automatically the safemode

      Attachments

        1. HDFS-13295.patch
          3 kB
          Nicolas Fraison
        2. HDFS-13295.2.patch
          8 kB
          Nicolas Fraison
        3. HDFS-13295.1.patch
          8 kB
          Nicolas Fraison

        Activity

          People

            nfraison.criteo Nicolas Fraison
            nfraison.criteo Nicolas Fraison
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated: