stoty commented on code in PR #6520: URL: https://github.com/apache/hbase/pull/6520#discussion_r1871142064
########## hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/TableResource.java: ########## @@ -139,6 +139,9 @@ public TableScanResource getScanResource(final @PathParam("scanspec") String sca @DefaultValue("true") @QueryParam(Constants.SCAN_INCLUDE_START_ROW) boolean includeStartRow, @DefaultValue("false") @QueryParam(Constants.SCAN_INCLUDE_STOP_ROW) boolean includeStopRow) { try { + if (servlet.getAdmin().isTableDisabled(TableName.valueOf(this.table))) { + throw new ServiceUnavailableException("Table disabled."); Review Comment: Of course we should add a new case for the not enabled case to the exception handler. -- 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: issues-unsubscr...@hbase.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org