apurtell commented on a change in pull request #225: HBASE-22377 Provide API to 
check the existence of a namespace which does not require ADMIN permissions
URL: https://github.com/apache/hbase/pull/225#discussion_r283482442
 
 

 ##########
 File path: hbase-shell/src/main/ruby/hbase/admin.rb
 ##########
 @@ -1244,8 +1244,8 @@ def describe_namespace(namespace_name)
     # Returns a list of namespaces in hbase
     def list_namespace(regex = '.*')
       pattern = java.util.regex.Pattern.compile(regex)
-      list = @admin.listNamespaceDescriptors.map(&:getName)
-      list.select { |s| pattern.match(s) }
+      list = @admin.listNamespaces
+      list.select {|s| pattern.match(s) }
 
 Review comment:
   Actually I didn't change that line intentionally, so that was my confusion. 
Will update it...

----------------------------------------------------------------
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

Reply via email to