Skip to content


Switch branches/tags

Latest commit

if (serverPath.length() > chrootPath.length()) {

Currently, chroot strip code listed above could result in illegal path
(aka. path not start with "/"). This will disconnect zookeeper client
due to `StringIndexOutOfBoundsException` from ``
in event handling.

Author: Kezhu Wang <>

Reviewers: Enrico Olivelli <>, Mate Szalay-Beko <>

Closes #1899 from kezhuw/ZOOKEEPER-4565-refine-chroot-strip

Git stats


Failed to load latest commit information.

Apache ZooKeeper GitHub Actions CI Travis CI Maven Central License

For the latest information about Apache ZooKeeper, please visit our website at:

and our wiki, at:

Packaging/release artifacts

Either downloaded from or found in zookeeper-assembly/target directory after building the project with maven.


    Contains all the source files which can be built by running:
    mvn clean install

    To generate an aggregated apidocs for zookeeper-server and zookeeper-jute:
    mvn javadoc:aggregate
    (generated files will be at target/site/apidocs)


    Contains all the jar files required to run ZooKeeper
    Full documentation can also be found in the docs folder

As of version 3.5.5, the parent, zookeeper and zookeeper-jute artifacts are deployed to the central repository after the release is voted on and approved by the Apache ZooKeeper PMC:

Java 8

If you are going to compile with Java 1.8, you should use a recent release at u211 or above.


We always welcome new contributors to the project! See How to Contribute for details on how to submit patches as pull requests and other aspects of our contribution workflow.