You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2020/02/21 01:22:30 UTC

[GitHub] [helix] NealSun96 opened a new issue #795: Incorrect behavior in ZkRoutingDataReader.getRoutingData

NealSun96 opened a new issue #795: Incorrect behavior in ZkRoutingDataReader.getRoutingData
URL: https://github.com/apache/helix/issues/795
 
 
   In the current version of `ZkRoutingDataReader`, its `getRoutingData` method has the following lines:
   ```
   if (shardingKeys != null) {
       routingData.put(realmAddress, shardingKeys);
   }
   ```
   This is an incorrect behavior because if a realm does not have the sharding keys list field, the realm will not be added to the returned routing data. We have decided that as long as the realm exists on ZooKeeper as a node, it should be included in the routing data regardless of whether it has associated sharding keys. The fix is to assign an empty list in the above condition. 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org


[GitHub] [helix] narendly closed issue #795: Incorrect behavior in ZkRoutingDataReader.getRoutingData

Posted by GitBox <gi...@apache.org>.
narendly closed issue #795: Incorrect behavior in ZkRoutingDataReader.getRoutingData
URL: https://github.com/apache/helix/issues/795
 
 
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org