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

Correct the safemode threshold value in BlockManagerSafeMode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.3.0
    • Component/s: namenode
    • Labels:
      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.002.patch
          2 kB
          hemanthboyina
        2. HDFS-14719.patch
          1.0 kB
          hemanthboyina

          Activity

            People

            • Assignee:
              hemanthboyina hemanthboyina
              Reporter:
              surendrasingh Surendra Singh Lilhore
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: