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

The log of sessionTimeout is inaccurate

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • java client
    • None

    Description

      When the client constructs ZooKeeper object, it will record the basic info in log. But its sessionTimeout may be inaccurate if it's not equal to negotiationSessionTimeout. Can we change the description of this info?

          public ZooKeeper(String connectString, int sessionTimeout, Watcher watcher)
              throws IOException
          {
              LOG.info("Initiating client connection, connectString=" + connectString
                      + " sessionTimeout=" + sessionTimeout + " watcher=" + watcher);
      
              watchManager.defaultWatcher = watcher;
              cnxn = new ClientCnxn(connectString, sessionTimeout, this, watchManager);
              cnxn.start();
          }
      

      Attachments

        1. ZOOKEEPER-2022-trunk.patch
          0.9 kB
          chendihao

        Activity

          People

            Unassigned Unassigned
            tobe chendihao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: