Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-192

trailing whitespace in config file can cause number format exceptions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.0.0
    • 3.2.0
    • server
    • None
    • Reviewed

    Description

      a config file with trailing whitespace can cause number format exception

      for example a line such as

      clientPort=2181

      where 2181 is followed by a space character, will fail to parse with number format excetion "2181 " (notice the space).

      We need to trim whitespace when parsing numbers

      Attachments

        1. ZOOKEEPER-192.patch
          4 kB
          Patrick D. Hunt

        Activity

          People

            phunt Patrick D. Hunt
            phunt Patrick D. Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: