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

Correct the safemode threshold value in BlockManagerSafeMode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.1.1
    • 3.3.0
    • namenode
    • None

    Description

      BlockManagerSafeMode is doing wrong parsing forĀ safemode threshold. It is storing float value in double, which will give different result some time. If we storeĀ "0.999f" value in double then it will be converted to "0.9990000128746033".

      this.threshold = conf.getFloat(DFS_NAMENODE_SAFEMODE_THRESHOLD_PCT_KEY,
      DFS_NAMENODE_SAFEMODE_THRESHOLD_PCT_DEFAULT);

      Attachments

        1. HDFS-14719.patch
          1.0 kB
          Hemanth Boyina
        2. HDFS-14719.002.patch
          2 kB
          Hemanth Boyina

        Activity

          People

            hemanthboyina Hemanth Boyina
            surendralilhore Surendra Singh Lilhore
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: