Jackie-Jiang commented on code in PR #20058:
URL: https://github.com/apache/pinot/pull/20058#discussion_r4392852160


##########
pinot-common/src/main/java/org/apache/pinot/common/utils/helix/HelixHelper.java:
##########
@@ -719,6 +721,33 @@ public static boolean updatePinotVersion(InstanceConfig 
instanceConfig) {
     return false;
   }
 
+  /// Writes the capabilities that an instance of the given type advertises in 
this version
+  /// ([InstanceCapability#values()]) to the map field `capabilities` of the 
instance config, together with the
+  /// reserved entry `pinotVersion` 
([CommonConstants.Helix.Instance#CAPABILITIES_PINOT_VERSION_KEY]) set to the 
Pinot
+  /// version of this build. Readers ignore the capabilities when that entry 
differs from the simple field
+  /// `pinotVersion`, which [#updatePinotVersion] writes. Any instance type 
can call it. Returns whether the field
+  /// changed.
+  public static boolean updateCapabilities(InstanceConfig instanceConfig,
+      org.apache.pinot.spi.config.instance.InstanceType instanceType) {

Review Comment:
   Consider switching the import. Pinot `InstanceType` is more common than 
Helix one. We also use `InstanceTypeUtils` in both places, which refers to the 
pinot `InstanceType`



-- 
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: [email protected]

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