Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-1798

ConfigDef.parseType() should throw exception on invalid boolean value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.8.2.0
    • 0.9.0.0
    • None

    Description

      ConfigDef.parseType() currently uses Boolean.parseBoolean(trimmed) to parse boolean value from a String. However, it simply returns false for anything that's not "true". It would be better if we throw an exception if the input string is not either "true" or "false".

      Attachments

        1. 0001-Changes.patch
          4 kB
          dokovan

        Activity

          People

            dokovan dokovan
            junrao Jun Rao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: