hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-19619) TestReplicationShell fails due to calling Collections$UnmodifiableCollection.add
Date Mon, 25 Dec 2017 03:35:00 GMT

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

Ted Yu commented on HBASE-19619:
--------------------------------

I am a bit puzzled by the following seen in the test output:
{code}
Error: ^[[48;5;16;38;5;226;1mtest_add_peer:_multiple_zk_cluster_key(Hbase::ReplicationAdminTest)^[[0m:
  NoMethodError: undefined method `getExcludeNamespaces' for #<Java::OrgApacheHadoopHbaseReplication::ReplicationPeerConfig:0x38568876>
  Did you mean?  getNamespaces
/Users/tyu/trunk/hbase-shell/src/main/ruby/hbase/replication_admin.rb:302:in `show_peer_exclude_namespaces'
/Users/tyu/trunk/hbase-shell/src/main/ruby/shell/commands/list_peers.rb:49:in `block in command'
/Users/tyu/trunk/hbase-shell/src/main/ruby/shell/commands/list_peers.rb:44:in `command'
/Users/tyu/trunk/hbase-shell/src/main/ruby/shell/commands.rb:38:in `block in command_safe'
/Users/tyu/trunk/hbase-shell/src/main/ruby/shell/commands.rb:108:in `translate_hbase_exceptions'
/Users/tyu/trunk/hbase-shell/src/main/ruby/shell/commands.rb:38:in `command_safe'
/Users/tyu/trunk/hbase-shell/src/main/ruby/shell.rb:155:in `internal_command'
/Users/tyu/trunk/hbase-shell/src/main/ruby/shell.rb:142:in `command'
{code}
getExcludeNamespaces is present in ReplicationPeerConfig

> TestReplicationShell fails due to calling Collections$UnmodifiableCollection.add
> --------------------------------------------------------------------------------
>
>                 Key: HBASE-19619
>                 URL: https://issues.apache.org/jira/browse/HBASE-19619
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Ted Yu
>         Attachments: 19619.v1.txt, 19619.v2.txt
>
>
> Here is the error:
> {code}
> Error: test_append_peer_namespaces:_works_with_namespaces_array(Hbase::ReplicationAdminTest):
Java::JavaLang::UnsupportedOperationException:
> java.util.Collections$UnmodifiableCollection.add(java/util/Collections.java:1055)
> java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:498)
> org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:453)
> org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:314)
> RUBY.block in add_peer_namespaces(/home/jenkins/jenkins-slave/workspace/HBase-Flaky-Tests/hbase-shell/src/main/ruby/hbase/replication_admin.rb:226)
> org.jruby.RubyArray.each(org/jruby/RubyArray.java:1734)
> org.jruby.RubyArray$INVOKER$i$0$0$each.call(org/jruby/RubyArray$INVOKER$i$0$0$each.gen)
> RUBY.add_peer_namespaces(/home/jenkins/jenkins-slave/workspace/HBase-Flaky-Tests/hbase-shell/src/main/ruby/hbase/replication_admin.rb:225)
> RUBY.command(/home/jenkins/jenkins-slave/workspace/HBase-Flaky-Tests/hbase-shell/src/main/ruby/shell/commands/append_peer_namespaces.rb:40)
> org.jruby.RubyClass.finvoke(org/jruby/RubyClass.java:522)
> {code}
> The cause was due to adding to UnmodifiableCollection



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message