dlmarion commented on code in PR #3496:
URL: https://github.com/apache/accumulo/pull/3496#discussion_r1260109647


##########
core/src/main/java/org/apache/accumulo/core/spi/balancer/TabletBalancer.java:
##########
@@ -138,4 +133,15 @@ interface BalanceParameters {
    * @return the time, in milliseconds, to wait before re-balancing.
    */
   long balance(BalanceParameters params);
+
+  /**
+   * Ask the balancer if the tablet is hosted by a TabletServer in the defined 
resource group
+   *
+   * @return true if TabletServer is in the configured resource group, false 
otherwise
+   * @since 4.0.0
+   */
+  default boolean isHostedInResourceGroup(Configuration conf, TabletServerId 
currentLocation,
+      Map<String,Set<TabletServerId>> currentTServerGrouping) {
+    return true;
+  }

Review Comment:
   I was able to implement your suggestions in a03bfb6. I modified the 
TabletBalancer api method to just take a TabletId and I renamed it to 
`getResourceGroup`.



-- 
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]

Reply via email to