dongxiaoman commented on a change in pull request #7064: URL: https://github.com/apache/incubator-pinot/pull/7064#discussion_r659221853
########## File path: pinot-broker/src/main/java/org/apache/pinot/broker/broker/helix/HelixBrokerStarter.java ########## @@ -139,12 +139,13 @@ public HelixBrokerStarter(PinotConfiguration brokerConf) throws Exception { if (brokerHost == null) { brokerHost = _brokerConf.getProperty(Helix.SET_INSTANCE_ID_TO_HOSTNAME_KEY, false) ? NetUtils .getHostnameOrAddress() : NetUtils.getHostAddress(); + brokerConf.setProperty(Broker.CONFIG_OF_BROKER_HOSTNAME, brokerHost); Review comment: Done ########## File path: pinot-server/src/main/java/org/apache/pinot/server/starter/helix/HelixServerStarter.java ########## @@ -266,65 +264,21 @@ private void registerServiceStatusHandler() { } private void updateInstanceConfigIfNeeded(String host, int port) { - InstanceConfig instanceConfig = _helixAdmin.getInstanceConfig(_helixClusterName, _instanceId); - boolean needToUpdateInstanceConfig = false; - - // Add default instance tags if not exist - List<String> instanceTags = instanceConfig.getTags(); - if (instanceTags == null || instanceTags.size() == 0) { - if (ZKMetadataProvider.getClusterTenantIsolationEnabled(_helixManager.getHelixPropertyStore())) { - instanceConfig.addTag(TagNameUtils.getOfflineTagForTenant(null)); - instanceConfig.addTag(TagNameUtils.getRealtimeTagForTenant(null)); - } else { - instanceConfig.addTag(Helix.UNTAGGED_SERVER_INSTANCE); - } - needToUpdateInstanceConfig = true; - } - - // Update host and port if needed - if (!host.equals(instanceConfig.getHostName())) { - instanceConfig.setHostName(host); - needToUpdateInstanceConfig = true; - } - String portStr = Integer.toString(port); - if (!portStr.equals(instanceConfig.getPort())) { - instanceConfig.setPort(portStr); - needToUpdateInstanceConfig = true; - } - - // Update instance config with environment properties - if (_pinotEnvironmentProvider != null) { Review comment: Done -- 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. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org 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