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

 ##########
 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:
   I think the warning pointing here `{|s|` which should be `{ |s|`

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