You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2021/06/10 21:36:51 UTC
[GitHub] [helix] huizhilu commented on a change in pull request #1792: Fix MaintenanceRecoveryStage Hanging
huizhilu commented on a change in pull request #1792:
URL: https://github.com/apache/helix/pull/1792#discussion_r649548843
##########
File path: helix-core/src/main/java/org/apache/helix/controller/GenericHelixController.java
##########
@@ -513,13 +513,13 @@ private static PipelineRegistry createDefaultRegistry(String pipelineName) {
rebalancePipeline.addStage(new BestPossibleStateCalcStage());
// Need to add MaintenanceRecoveryStage here because MAX_PARTITIONS_PER_INSTANCE check could
// only occur after IntermediateStateCalcStage calculation
- rebalancePipeline.addStage(new MaintenanceRecoveryStage());
rebalancePipeline.addStage(new MessageGenerationPhase());
rebalancePipeline.addStage(new MessageSelectionStage());
// The IntermediateStateCalcStage should be applied after message selection
// Messages are throttled already removed by IntermediateStateCalcStage in MessageSelection output
rebalancePipeline.addStage(new IntermediateStateCalcStage());
rebalancePipeline.addStage(new MessageThrottleStage());
+ rebalancePipeline.addStage(new MaintenanceRecoveryStage());
Review comment:
Question: why not put it right after `IntermediateStateCalcStage`, before `MessageThrottleStage`?
##########
File path: helix-core/src/test/java/org/apache/helix/integration/controller/TestClusterMaintenanceMode.java
##########
@@ -436,4 +435,16 @@ public void testMaintenanceHistory() throws InterruptedException, IOException {
return new ObjectMapper().readValue(value,
TypeFactory.defaultInstance().constructMapType(HashMap.class, String.class, String.class));
}
+
+
+ private boolean verifyMaintenanceSignal(long timeout, boolean exists) throws InterruptedException {
Review comment:
Can leverage `TestHelper.verify()`
--
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.
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