[ https://issues.apache.org/jira/browse/HBASE-22770?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Hentschel reassigned HBASE-22770: ------------------------------------- Assignee: Jan Hentschel > TestShell fails on trunk with NameError: missing class name > (`org.apache.hadoop.hbase.ClusterStatus') > ----------------------------------------------------------------------------------------------------- > > Key: HBASE-22770 > URL: https://issues.apache.org/jira/browse/HBASE-22770 > Project: HBase > Issue Type: Bug > Components: shell, test > Reporter: Andrew Purtell > Assignee: Jan Hentschel > Priority: Major > > Running shell tests on trunk there are some failures related to use of > ClusterStatus in admin.rb: > {noformat} > Error: > ^[[48;5;16;38;5;226;1mtest_decommission_regionservers_with_non-existant_server_name(Hbase::CommissioningTest)^[[0m: > NameError: missing class name (`org.apache.hadoop.hbase.ClusterStatus') > org/jruby/javasupport/JavaPackage.java:259:in `method_missing' > /Users/apurtell/src/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:1180:in > `getRegionServers' > /Users/apurtell/src/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:1206:in > `getServerNames' > src/test/ruby/hbase/admin2_test.rb:386:in `block in > test_decommission_regionservers_with_non-existant_server_name' > 383: end > 384: > 385: define_test 'decommission regionservers with non-existant > server name' do > ^[[48;5;16;38;5;226;1m => 386: server_name = admin.getServerNames([], > true)[0].getServerName()^[[0m > 387: assert_raise(ArgumentError) do > 388: command(:decommission_regionservers, 'dummy') > 389: end > {noformat} > {noformat} > Error: > ^[[48;5;16;38;5;226;1mtest_decommission_regionservers_with_server_host_name_and_port(Hbase::CommissioningTest)^[[0m: > NameError: missing class name (`org.apache.hadoop.hbase.ClusterStatus') > org/jruby/javasupport/JavaPackage.java:259:in `method_missing' > /Users/apurtell/src/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:1180:in > `getRegionServers' > /Users/apurtell/src/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:1206:in > `getServerNames' > src/test/ruby/hbase/admin2_test.rb:371:in `block in > test_decommission_regionservers_with_server_host_name_and_port' > 368: end > 369: > 370: define_test 'decommission regionservers with server host name > and port' do > ^[[48;5;16;38;5;226;1m => 371: server_name = admin.getServerNames([], > true)[0]^[[0m > 372: host_name_and_port = server_name.getHostname + ',' > +server_name.getPort.to_s > 373: server_name_str = server_name.getServerName > 374: command(:decommission_regionservers, host_name_and_port) > {noformat} > {noformat} > Error: > ^[[48;5;16;38;5;226;1mtest_decommission_regionservers_with_server_host_name_only(Hbase::CommissioningTest)^[[0m: > NameError: missing class name (`org.apache.hadoop.hbase.ClusterStatus') > org/jruby/javasupport/JavaPackage.java:259:in `method_missing' > /Users/apurtell/src/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:1180:in > `getRegionServers' > /Users/apurtell/src/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:1206:in > `getServerNames' > src/test/ruby/hbase/admin2_test.rb:356:in `block in > test_decommission_regionservers_with_server_host_name_only' > 353: end > 354: > 355: define_test 'decommission regionservers with server host name > only' do > ^[[48;5;16;38;5;226;1m => 356: server_name = admin.getServerNames([], > true)[0]^[[0m > 357: host_name = server_name.getHostname > 358: server_name_str = server_name.getServerName > 359: command(:decommission_regionservers, host_name) > {noformat} > and so on -- This message was sent by Atlassian Jira (v8.3.2#803003)