jiajunwang commented on a change in pull request #1183:
URL: https://github.com/apache/helix/pull/1183#discussion_r463202816



##########
File path: 
helix-core/src/main/java/org/apache/helix/manager/zk/ZKHelixManager.java
##########
@@ -131,6 +131,7 @@
   private int _reportLatency;
 
   protected RealmAwareZkClient _zkclient;
+  private RealmAwareZkClient.RealmAwareZkConnectionConfig 
_realmAwareZkConnectionConfig;

Review comment:
       As I pinged you in slack, if we can let RealmAwareZkConnectionConfig 
backward supports _zkAddress, then we can save tons of validations and branches 
code in this class.
   Moreover, we can simplify the code following this principle,
   1. new APIs only accept RealmAwareZkConnectionConfig, we don't use zkAddress 
directly.
   2. for older API, we create default RealmAwareZkConnectionConfig based on 
the zkAddress. So we don't have 2 possibilities in the internal code 
implementations.




----------------------------------------------------------------
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to