xiangfu0 commented on code in PR #17167:
URL: https://github.com/apache/pinot/pull/17167#discussion_r3041117493
##########
pinot-integration-tests/src/test/java/org/apache/pinot/integration/tests/TenantRebalanceIntegrationTest.java:
##########
@@ -32,9 +32,16 @@
public class TenantRebalanceIntegrationTest extends
BaseHybridClusterIntegrationTest {
- private String getRebalanceUrl() {
- return StringUtil.join("/", getControllerRequestURLBuilder().getBaseUrl(),
"tenants", getServerTenant(),
- "rebalance");
+ private TenantRebalanceResult rebalanceTenant(TenantRebalanceConfig config,
@Nullable Map<String, String> queryParams)
+ throws Exception {
+ return getOrCreateAdminClient().getTenantClient()
+ .rebalanceTenantWithConfig(config.getTenantName(),
JsonUtils.objectToString(config), queryParams,
Review Comment:
rebalanceTenantWithConfig() method should directly return
TenantRebalanceResult
--
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]