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

ServerConfig#parse(String[]) ignores tickTime

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 3.4.7, 3.5.1
    • Fix Version/s: 3.4.10, 3.5.3, 3.6.0
    • Component/s: server
    • Labels:
      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

              • Assignee:
                eribeiro Edward Ribeiro
                Reporter:
                shralex Alexander Shraer
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: