desaijay230592 commented on a change in pull request #6842: URL: https://github.com/apache/incubator-pinot/pull/6842#discussion_r626956355
########## File path: pinot-server/src/main/java/org/apache/pinot/server/starter/helix/HelixServerStarter.java ########## @@ -117,13 +125,18 @@ private AdminApiApplication _adminApiApplication; private ServerQueriesDisabledTracker _serverQueriesDisabledTracker; private RealtimeLuceneIndexRefreshState _realtimeLuceneIndexRefreshState; + private boolean skipPinotEnvironmentProviderFactoryInit = true; - public HelixServerStarter(String helixClusterName, String zkAddress, PinotConfiguration serverConf) - throws Exception { + public HelixServerStarter(String helixClusterName, String zkAddress, PinotConfiguration serverConf) throws Exception { _helixClusterName = helixClusterName; _zkAddress = zkAddress; // Make a clone so that changes to the config won't propagate to the caller _serverConf = serverConf.clone(); + // Check if PinotEnvironmentProviderFactoryInit is enabled or not + if (_serverConf.containsKey(CONFIG_OF_ENABLE_ENVIRONMENT_PROVIDER_FACTORY) && + TRUE.equals(serverConf.getProperty(CONFIG_OF_ENABLE_ENVIRONMENT_PROVIDER_FACTORY))) { + skipPinotEnvironmentProviderFactoryInit = false; + } Review comment: Moved the logic to the constructor. -- 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