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

Cannot connect with a given sessionId - it is discarded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      While the API permits construction of a ZooKeeper client object with a given sessionId, the sessionId can never be used:

      ClientCnxn line 850: long sessId = (seenRwServerBefore) ? sessionId : 0;

      The only person who sets seenRwServerBefore is onConnected().

      Therefore, it appears that passing a sessionId into a ZooKeeper constructor has no effect, as the ClientCnxn has never seen an RW server before, so it discards it anyway.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              arren Shevek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: