karthikhw commented on a change in pull request #706: HBASE-23140 Remove
unknown table error
URL: https://github.com/apache/hbase/pull/706#discussion_r332861616
##########
File path: hbase-shell/src/main/ruby/shell/commands/describe_namespace.rb
##########
@@ -33,14 +33,16 @@ def command(namespace)
formatter.header(['DESCRIPTION'], [64])
formatter.row([desc], true, [64])
-
- puts
- formatter.header(%w[QUOTAS])
ns = namespace.to_s
- count = quotas_admin.list_quotas(NAMESPACE => ns) do |_, quota|
- formatter.row([quota])
+ if admin.exists?(::HBaseQuotasConstants::QUOTA_TABLE_NAME.to_s)
Review comment:
Thank you @openinx for looking at this fix. Added test case.
----------------------------------------------------------------
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]
With regards,
Apache Git Services