sajjad-moradi commented on code in PR #8986:
URL: https://github.com/apache/pinot/pull/8986#discussion_r918208930
##########
pinot-controller/src/main/java/org/apache/pinot/controller/helix/ControllerRequestClient.java:
##########
@@ -169,6 +170,39 @@ public void deleteSegments(String tableName, TableType
tableType)
}
}
+ public PinotLLCRealtimeSegmentManager.PauseStatus pauseConsumption(String
tableName)
+ throws IOException {
+ try {
+ SimpleHttpResponse response =
HttpClient.wrapAndThrowHttpException(_httpClient.sendJsonPostRequest(new URL(
+
_controllerRequestURLBuilder.forPauseConsumption(tableName)).toURI(), null));
+ return JsonUtils.stringToObject(response.getResponse(),
PinotLLCRealtimeSegmentManager.PauseStatus.class);
Review Comment:
Moved to api module.
##########
pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/PinotHelixResourceManager.java:
##########
@@ -3613,7 +3613,27 @@ public Pair<String, Integer>
invokeControllerPeriodicTask(String tableName, Stri
LOGGER.info("[TaskRequestId: {}] Periodic task execution message sent to
{} controllers.", periodicTaskRequestId,
messageCount);
- return Pair.of(periodicTaskRequestId, messageCount);
+ return new PeriodicTaskInvocationResponse(periodicTaskRequestId,
messageCount > 0);
+ }
+
+ public static class PeriodicTaskInvocationResponse {
Review Comment:
Moved to api module.
--
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]