npawar commented on a change in pull request #6840: URL: https://github.com/apache/incubator-pinot/pull/6840#discussion_r621588263
########## File path: pinot-controller/src/main/java/org/apache/pinot/controller/api/resources/PinotTableRestletResource.java ########## @@ -165,9 +146,13 @@ public SuccessResponse addTable(String tableConfigStr, @Context HttpHeaders http throw new ControllerApplicationException(LOGGER, e.getMessage(), Response.Status.BAD_REQUEST, e); } try { - ensureMinReplicas(tableConfig); - ensureStorageQuotaConstraints(tableConfig); - verifyTableConfigs(tableConfig); + try { + TableConfigUtils.ensureMinReplicas(tableConfig, _controllerConf.getDefaultTableMinReplicas()); + TableConfigUtils.ensureStorageQuotaConstraints(tableConfig, _controllerConf.getDimTableMaxSize()); + checkHybridTableConfig(TableNameBuilder.extractRawTableName(tableName), tableConfig); + } catch (Exception e) { + throw new PinotHelixResourceManager.InvalidTableConfigException(e); Review comment: Done. Moved it to a package along with `TableAlreadyExistsException` and `ControllerApplicationException` -- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org