You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/06/07 22:25:13 UTC

[GitHub] [pinot] xiangfu0 commented on a diff in pull request #8856: BUGFIX: Adding util for getting URL from InstanceConfig

xiangfu0 commented on code in PR #8856:
URL: https://github.com/apache/pinot/pull/8856#discussion_r891758211


##########
pinot-common/src/main/java/org/apache/pinot/common/utils/config/InstanceUtils.java:
##########
@@ -119,4 +122,36 @@ public static void updateHelixInstanceConfig(InstanceConfig instanceConfig, Inst
       mapFields.remove(POOL_KEY);
     }
   }
+
+  /**
+   * Returns an instance admin URL from a given InstanceConfig. Will decipher whether the URL protocol should
+   * be HTTP vs HTTPS.
+   */
+  public static URL getInstanceURL(InstanceConfig instanceConfig) {

Review Comment:
   This is for pinot controller only, for pinot broker, you will have one port for query and one port for admin.



-- 
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-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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