desaijay230592 commented on a change in pull request #6842:
URL: https://github.com/apache/incubator-pinot/pull/6842#discussion_r630463840



##########
File path: 
pinot-server/src/main/java/org/apache/pinot/server/starter/helix/HelixServerStarter.java
##########
@@ -261,6 +306,22 @@ private void updateInstanceConfigIfNeeded(String host, int 
port) {
         "Failed to update instance config");
   }
 
+  // Update instance configs with environment specific properties
+  private void updateInstanceConfigWithEnvironmentSpecificConfigs() {

Review comment:
       After proper consideration it seemed best to update instance configs at 
Server Starter layer. We are already doing something similar. Refer to: 
updateInstanceConfigIfNeeded method in HelixServerStarter.java. Updating 
configs before the call to HelixServerStarter is not possible as we initialize 
the EnvironmentProvider factory at HelixServerStarter layer. If we move the 
entire logic before the call to HelixServerStarter is made then we will be 
adding a lot of redundant code of connecting to helixManager and retrieving the 
helixAdmin instance. Hence, this solution.




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



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to