NealSun96 opened a new issue #828: Fix bugs in ZkRoutingDataReader and ZkRoutingDataWriter URL: https://github.com/apache/helix/issues/828 Fix the following bugs: 1. When the routing data is not initialized for a namespace, creating a `ZkRoutingDataReader` for that namespace causes a NoNodeException due to a `getChildren` call. Fix: initialize the base node for routing data across all zookeeper-related actors (`ZkMetadataStoreDirectory`, `ZkRoutingDataReader`, `ZkRoutingDataWriter`) 2. In the `getRoutingData()` method of `ZkRoutingDataReader`, a null check is necessary before getting sharding keys from a realm node, because the realm node may be an invalid ZNRecord. Fix: add null check. 3. The hostname provided from system properties does not have the protocol. `ZkRoutingDataWriter` was using the hostname directly for request forwarding. Fix: add protocol to the hostname before request forwarding.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
