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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.22.0
    • 0.23.0
    • conf
    • None
    • Incompatible change, Reviewed
    • 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

            qwertymaniac Harsh J
            omalley Owen O'Malley
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: