Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-2081

Configuration getInt, getLong, and getFloat replace invalid numbers with the default value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.23.0
    • Component/s: conf
    • Labels:
      None
    • Hadoop Flags:
      Incompatible change, Reviewed
    • Release Note:
      Invalid configuration values now result in a number format exception rather than the default value being used.

      Description

      The current behavior of silently replace invalid numbers in the configuration with the default value leads to hard to diagnose problems. The methods should throw an exception to signal that the input was invalid.

        Attachments

        1. HADOOP-2081.r1.diff
          5 kB
          Harsh J
        2. HADOOP-2081.r2.diff
          7 kB
          Harsh J
        3. HADOOP-2081.r3.diff
          7 kB
          Harsh J

          Activity

            People

            • Assignee:
              qwertymaniac Harsh J
              Reporter:
              owen.omalley Owen O'Malley
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: