ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-490

the java docs for session creation are misleading/incomplete

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.1, 3.2.0
    • Fix Version/s: 3.2.1, 3.3.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      the javadoc for ZooKeeper constructor says:

      • The client object will pick an arbitrary server and try to connect to it.
      • If failed, it will try the next one in the list, until a connection is
      • established, or all the servers have been tried.

      the "or all server tried" phrase is misleading, it should indicate that we retry until success, con closed, or session expired.

      we also need ot mention that connection is async, that constructor returns immed and you need to look for connection event in watcher

        Activity

        Patrick Hunt created issue -
        Patrick Hunt made changes -
        Field Original Value New Value
        Assignee Patrick Hunt [ phunt ]
        Patrick Hunt made changes -
        Attachment ZOOKEEPER-490.patch [ 12415675 ]
        Patrick Hunt made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Benjamin Reed made changes -
        Hadoop Flags [Reviewed]
        Patrick Hunt made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Patrick Hunt made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Patrick Hunt
            Reporter:
            Patrick Hunt
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development