drill icon indicating copy to clipboard operation
drill copied to clipboard

DRILL-8275: Prevent the JDBC Client to create error path in Zookeeper

Open luocooong opened this issue 3 years ago • 0 comments
trafficstars

DRILL-8275: Prevent the JDBC Client to create error path in Zookeeper

Description

Use the ZK style on the connection string and the zkRoot does not match the actual path of the cluster, then the client always creates the error path (as a permanent) in the Zookeeper.

The reason is that after CuratorFramework creates the builder, if zkRoot is already specified (called namespace in curator), it will force to create the root path (even if the path is inconsistent with the real cluster). As the result, many useless roots may be created in Zookeeper.

Documentation

N/A

Testing

Added the tests.

luocooong avatar Aug 05 '22 15:08 luocooong