npawar commented on a change in pull request #6211:
URL: https://github.com/apache/incubator-pinot/pull/6211#discussion_r516786137
##########
File path:
pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotTableRestletResource.java
##########
@@ -558,4 +558,54 @@ public RebalanceResult rebalance(
throw new ControllerApplicationException(LOGGER, e.getMessage(),
Response.Status.NOT_FOUND);
}
}
+
+ @GET
+ @Produces(MediaType.APPLICATION_JSON)
+ @Path("/tables/{tableName}/state")
+ @ApiOperation(value = "Get current table state", notes = "Get current table
state")
+ public String getTableState(
+ @ApiParam(value = "Name of the table to get its state", required = true)
@PathParam("tableName") String tableName,
+ @ApiParam(value = "realtime|offline") @QueryParam("type") String
tableTypeStr
Review comment:
Can still be enabled/disabled or true/false. But just single string with
only 2 possible options
----------------------------------------------------------------
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:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]