You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by "junkaixue (via GitHub)" <gi...@apache.org> on 2025/05/12 22:05:52 UTC
Re: [PR] Add check for customized resources in isEvacuatedFinished [helix]
junkaixue commented on code in PR #3023:
URL: https://github.com/apache/helix/pull/3023#discussion_r2085603528
##########
helix-core/src/main/java/org/apache/helix/controller/rebalancer/CustomRebalancer.java:
##########
@@ -132,10 +134,14 @@ private Map<String, String> computeCustomizedBestStateForPartition(
boolean notInErrorState = currentStateMap != null
&& !HelixDefinedState.ERROR.toString().equals(currentStateMap.get(instance));
boolean enabled = !disabledInstancesForPartition.contains(instance) && isResourceEnabled;
-
+ InstanceConfig instanceConfig = cache.getInstanceConfigMap().get(instance);
+ boolean hasEvacuatedOp = instanceConfig != null &&
+ instanceConfig.getInstanceOperation().getOperation() == InstanceConstants.InstanceOperation.EVACUATE;
+ boolean isAssignableForCustomizedResource = cache.getLiveInstances().containsKey(instance) && hasEvacuatedOp;
Review Comment:
Can we leave custom rebalancer away with this logic currently? I think this requires a comprehensive design with custom rebalance users in open source.
--
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: reviews-unsubscribe@helix.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org