This is an automated email from the ASF dual-hosted git repository.

paksyd pushed a commit to branch branch-3
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-3 by this push:
     new 3e1f4c3f125 HBASE-29886 list_namespace will throw instance vars on 
non-persistent Java type warning (#7733)
3e1f4c3f125 is described below

commit 3e1f4c3f12563574ae7eba6fce3970c7b5a4d73c
Author: Liu Xiao <[email protected]>
AuthorDate: Mon Feb 23 16:46:03 2026 +0800

    HBASE-29886 list_namespace will throw instance vars on non-persistent Java 
type warning (#7733)
    
    Signed-off-by: Duo Zhang <[email protected]>
    Signed-off-by: Dávid Paksy <[email protected]>
    (cherry picked from commit 26fdd25071a646a88112b741799dc191ffba1854)
---
 hbase-shell/src/main/ruby/hbase/admin.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hbase-shell/src/main/ruby/hbase/admin.rb 
b/hbase-shell/src/main/ruby/hbase/admin.rb
index 93cc312338c..dd726dad50f 100644
--- a/hbase-shell/src/main/ruby/hbase/admin.rb
+++ b/hbase-shell/src/main/ruby/hbase/admin.rb
@@ -1480,7 +1480,7 @@ module Hbase
     def list_namespace(regex = '.*')
       pattern = java.util.regex.Pattern.compile(regex)
       list = @admin.listNamespaces
-      list.select { |s| pattern.match(s) }
+      list.select { |s| pattern.matcher(s).matches }
     end
 
     
#----------------------------------------------------------------------------------------------

Reply via email to