Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZOOKEEPER-2108 ZOOKEEPER-3908 ZOOKEEPER-4491: fixing zktreeutil, adding ssl support #24

Merged
merged 1 commit into from
Jan 13, 2023

Conversation

anurag-harness
Copy link
Owner

Currently, zktreeutil tool doesn't compile/work. This PR brings back zktreeutil to life and adds SSL support to connect to TLS enabled ZooKeeper server.

Following are the issues fixed with this PR.

  1. ZOOKEEPER-2108 (Compilation error in ZkAdaptor.cc with GCC 4.7 or later)
    The compilation error in ZkAdaptor.cc is fixed by including the header file. Also, updated the ZOOKEEPER_PATH in configure.ac

  2. ZOOKEEPER-3908 (zktreeutil multiple issues)
    Fixed the issues reported in this ticket.

  3. ZOOKEEPER-4491 (Adding SSL support to Zktreeutil)

Attached the testing log.

zktreeutil_testing_connection.txt

Author: Manu Mathew manu.mathew@netapp.com
Author: mathewmanu manmathew@cs.stonybrook.edu

Reviewers: Enrico Olivelli eolivelli@apache.org, Mate Szalay-Beko symat@apache.org

Closes apache#1870 from mathew-manu/ZOOKEEPER-4491

…ng ssl support

Currently, zktreeutil tool **doesn't compile/work**. This PR brings back `zktreeutil` to life and adds SSL support to connect to TLS enabled ZooKeeper server.

**Following are the issues fixed with this PR.**

1) [ZOOKEEPER-2108](https://issues.apache.org/jira/browse/ZOOKEEPER-2108)  **(Compilation error in ZkAdaptor.cc with GCC 4.7 or later)**
    The compilation error in `ZkAdaptor.cc` is fixed by including the header file. Also, updated the `ZOOKEEPER_PATH` in `configure.ac`

2) [ZOOKEEPER-3908](https://issues.apache.org/jira/browse/ZOOKEEPER-3908) **(zktreeutil multiple issues)**
   Fixed the issues reported in this ticket.

3) [ZOOKEEPER-4491](https://issues.apache.org/jira/browse/ZOOKEEPER-4491) **(Adding SSL support to Zktreeutil)**

    -    Adds the SSL support to `zktreeutil` to talk to TLS enabled ZooKeeper server, If SSL params are passed, invoke `zookeeper_init_ssl` method to connect the server.

    -    Used the same OpenSSL library auto-detect code from the c-client `configure.ac`  (apache#1159)

Attached the testing log.

[zktreeutil_testing_connection.txt](https://github.com/apache/zookeeper/files/8585349/zktreeutil_testing_connection.txt)

Author: Manu Mathew <manu.mathew@netapp.com>
Author: mathewmanu <manmathew@cs.stonybrook.edu>

Reviewers: Enrico Olivelli <eolivelli@apache.org>, Mate Szalay-Beko <symat@apache.org>

Closes apache#1870 from mathew-manu/ZOOKEEPER-4491
@anurag-harness anurag-harness merged commit ec03fb2 into master Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants