siddharthteotia commented on code in PR #9662:
URL: https://github.com/apache/pinot/pull/9662#discussion_r1006475646
##########
pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/rebalance/TableRebalancer.java:
##########
@@ -383,6 +383,19 @@ public RebalanceResult rebalance(TableConfig tableConfig,
Configuration rebalanc
}
}
+ public RebalanceResult.Status rebalanceStatus(String tableNameWithType,
IdealState idealState,
+ ExternalView externalView) {
+
+ if (idealState == null) {
+ throw new IllegalStateException("ideal state is empty");
+ }
+ if (externalView != null && isExternalViewConverged(tableNameWithType,
externalView.getRecord().getMapFields(),
Review Comment:
Do we want to consider the situation where external view never converges
with what ongoing rebalancer expects or external view ends up having segments
in ERROR state ?
Looks like we will continue returning IN_PROGRESS in such scenarios and that
could be misleading ? Probably also depends on what is the call to action for
the user/admin who uses this API...
--
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]