hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Talat UYARER (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-15939) Two shell test failures on master
Date Thu, 02 Jun 2016 21:49:59 GMT

    [ https://issues.apache.org/jira/browse/HBASE-15939?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15313141#comment-15313141
] 

Talat UYARER commented on HBASE-15939:
--------------------------------------

Ok I added like comment. The reason of failing test is HBASE-15835. Task monitor uses the
info servers. I attached that settings. 

{code:borderStyle=solid}
diff --git hbase-shell/src/main/ruby/hbase/hbase.rb hbase-shell/src/main/ruby/hbase/hbase.rb
index 797d784..852f349 100644
--- hbase-shell/src/main/ruby/hbase/hbase.rb
+++ hbase-shell/src/main/ruby/hbase/hbase.rb
@@ -58,7 +58,7 @@ module Hbase
 
     # Create new one each time
     def table(table, shell)
-      ::Hbase::Table.new(@connection.getTable(table), shell)
+      ::Hbase::Table.new(@connection.getTable(TableName.valueOf(table)), shell)
     end
 
     def replication_admin(formatter)
diff --git hbase-shell/src/test/java/org/apache/hadoop/hbase/client/AbstractTestShell.java
hbase-shell/src/test/java/org/apache/hadoop/hbase/client/AbstractTestShell.java
index ddcc1ea..01ef00b 100644
--- hbase-shell/src/test/java/org/apache/hadoop/hbase/client/AbstractTestShell.java
+++ hbase-shell/src/test/java/org/apache/hadoop/hbase/client/AbstractTestShell.java
@@ -44,6 +44,10 @@ public abstract class AbstractTestShell {
     TEST_UTIL.getConfiguration().setBoolean(CoprocessorHost.ABORT_ON_ERROR_KEY, false);
     TEST_UTIL.getConfiguration().setInt("hfile.format.version", 3);
 
+    // Below settings are necessary for task monitor test.
+    TEST_UTIL.getConfiguration().setInt(HConstants.MASTER_INFO_PORT, 0);
+    TEST_UTIL.getConfiguration().setInt(HConstants.REGIONSERVER_INFO_PORT, 0);
+    TEST_UTIL.getConfiguration().setBoolean(HConstants.REGIONSERVER_INFO_PORT_AUTO, true);
     // Security setup configuration
     SecureTestUtil.enableSecurity(TEST_UTIL.getConfiguration());
     VisibilityTestUtil.enableVisiblityLabels(TEST_UTIL.getConfiguration());
{code}

> Two shell test failures on master
> ---------------------------------
>
>                 Key: HBASE-15939
>                 URL: https://issues.apache.org/jira/browse/HBASE-15939
>             Project: HBase
>          Issue Type: Test
>            Reporter: Ted Yu
>         Attachments: 15939.v1.txt
>
>
> For master branch, I observe two shell test failures:
> {code}
> test_Shell::Shell_noninteractive_mode_should_throw(NonInteractiveTest):
> NameError: no method 'getTable' for arguments (org.jruby.RubyString) on #<Class:0x3493f7d>
>     /Users/tyu/trunk/hbase-shell/src/main/ruby/hbase/hbase.rb:61:in `table'
>     /Users/tyu/trunk/hbase-shell/src/main/ruby/shell.rb:95:in `hbase_table'
>     /Users/tyu/trunk/hbase-shell/src/main/ruby/shell/commands.rb:62:in `table'
>     /Users/tyu/trunk/hbase-shell/src/main/ruby/shell/commands/create.rb:69:in `command'
>     org/jruby/RubyKernel.java:2113:in `send'
>     /Users/tyu/trunk/hbase-shell/src/main/ruby/shell/commands.rb:34:in `command_safe'
>     /Users/tyu/trunk/hbase-shell/src/main/ruby/shell/commands.rb:107:in `translate_hbase_exceptions'
>     /Users/tyu/trunk/hbase-shell/src/main/ruby/shell/commands.rb:34:in `command_safe'
>     /Users/tyu/trunk/hbase-shell/src/main/ruby/shell.rb:148:in `internal_command'
>     /Users/tyu/trunk/hbase-shell/src/main/ruby/shell.rb:140:in `command'
>     ./src/test/ruby/shell/noninteractive_test.rb:35:in `test_Shell::Shell_noninteractive_mode_should_throw'
>     org/jruby/RubyProc.java:270:in `call'
>     org/jruby/RubyKernel.java:2105:in `send'
>     org/jruby/RubyArray.java:1620:in `each'
>     org/jruby/RubyArray.java:1620:in `each'
> {code}
> {code}
>   1) Error:
> test_tasksOnHost_should_return_tasks_list(Hbase::TaskMonitorTest):
> NativeException: java.net.ConnectException: Connection refused
>     java/net/PlainSocketImpl.java:-2:in `socketConnect'
>     java/net/AbstractPlainSocketImpl.java:339:in `doConnect'
>     java/net/AbstractPlainSocketImpl.java:200:in `connectToAddress'
>     java/net/AbstractPlainSocketImpl.java:182:in `connect'
>     java/net/SocksSocketImpl.java:392:in `connect'
>     java/net/Socket.java:579:in `connect'
>     java/net/Socket.java:528:in `connect'
>     sun/net/NetworkClient.java:180:in `doConnect'
>     sun/net/www/http/HttpClient.java:432:in `openServer'
>     sun/net/www/http/HttpClient.java:527:in `openServer'
>     sun/net/www/http/HttpClient.java:211:in `<init>'
>     sun/net/www/http/HttpClient.java:308:in `New'
>     sun/net/www/http/HttpClient.java:326:in `New'
>     sun/net/www/protocol/http/HttpURLConnection.java:996:in `getNewHttpClient'
>     sun/net/www/protocol/http/HttpURLConnection.java:932:in `plainConnect'
>     sun/net/www/protocol/http/HttpURLConnection.java:850:in `connect'
>     sun/net/www/protocol/http/HttpURLConnection.java:1300:in `getInputStream'
>     java/net/URL.java:1037:in `openStream'
>     org/codehaus/jackson/JsonFactory.java:935:in `_optimizedStreamFromURL'
>     org/codehaus/jackson/JsonFactory.java:530:in `createJsonParser'
>     org/codehaus/jackson/map/ObjectMapper.java:1840:in `readValue'
>     /Users/tyu/trunk/hbase-shell/src/main/ruby/hbase/taskmonitor.rb:104:in `tasksOnHost'
>     ./src/test/ruby/hbase/taskmonitor_test.rb:33:in `test_tasksOnHost_should_return_tasks_list'
>     org/jruby/RubyArray.java:1620:in `each'
>     ./src/test/ruby/hbase/taskmonitor_test.rb:32:in `test_tasksOnHost_should_return_tasks_list'
>     org/jruby/RubyProc.java:270:in `call'
>     org/jruby/RubyKernel.java:2105:in `send'
>     org/jruby/RubyArray.java:1620:in `each'
>     org/jruby/RubyArray.java:1620:in `each'
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message