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

ServerConfig#parse(String[]) ignores tickTime

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 3.4.7, 3.5.1
    • 3.4.10, 3.5.3, 3.6.0
    • server
    • None

    Description

      Based on bug report from ykgarfield:

      ServerConfig#parse(String[]) method has the following code:

      public void parse(String[] args) {
      ...
      if (args.length == 3)

      { tickTime = Integer.parseInt(args[2]); }

      if (args.length == 4)

      { maxClientCnxns = Integer.parseInt(args[3]); }

      }
      ```

      So if args.length == 4 tickTime isn't parsed.

      Attachments

        1. ZOOKEEPER-2470.patch
          0.9 kB
          Alexander Shraer

        Issue Links

          Activity

            People

              eribeiro Edward Ribeiro
              shralex Alexander Shraer
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: