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

Many instances of ZookeeperSaslClient in one process - every instance should use different jaas config section.

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • None
    • None
    • java client
    • None

    Description

      First of all I don't know if "Wish" is the best task type for it. I just want to ask you a question.

      Why login field in ZooKeeperSaslClient is a static one?
      https://github.com/apache/zookeeper/blob/trunk/src/java/main/org/apache/zookeeper/client/ZooKeeperSaslClient.java#L81

      I'd like to have many zookeeper clients in one process. I want each of them to read different section from jaas config. I know that I can specify which one should be read by setting system property:
      https://github.com/apache/zookeeper/blob/trunk/src/java/main/org/apache/zookeeper/client/ZooKeeperSaslClient.java#L114

      Unfortunately login field is static and it is instantiated during creation of first ZooKeeperSaslClient instance.

      Maybe there is some reason behind decision of making "login" static - if yes, could you please explain it?

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              piotr.a.chmielinski@intel.com Piotr ChmieliƄski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: