timsants commented on code in PR #8509: URL: https://github.com/apache/pinot/pull/8509#discussion_r847866608
########## pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/PinotHelixResourceManager.java: ########## @@ -1384,7 +1384,7 @@ public List<String> getSchemaNames() { public void addTable(TableConfig tableConfig) throws IOException { String tableNameWithType = tableConfig.getTableName(); - if (getTableConfig(tableNameWithType) != null) { + if (hasTable(tableNameWithType)) { throw new TableAlreadyExistsException("Table " + tableNameWithType + " already exists"); Review Comment: Added a more detailed message saying that the table config existed and a suggestion to cleanup the table. -- 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: commits-unsubscr...@pinot.apache.org 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