Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3F916200D76 for ; Mon, 25 Dec 2017 04:35:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 3DAB5160C2F; Mon, 25 Dec 2017 03:35:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 82E87160C1D for ; Mon, 25 Dec 2017 04:35:04 +0100 (CET) Received: (qmail 85119 invoked by uid 500); 25 Dec 2017 03:35:03 -0000 Mailing-List: contact issues-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@hbase.apache.org Received: (qmail 85108 invoked by uid 99); 25 Dec 2017 03:35:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Dec 2017 03:35:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 1AE491A0346 for ; Mon, 25 Dec 2017 03:35:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id iRBQeawMxtv4 for ; Mon, 25 Dec 2017 03:35:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id C916E5F39D for ; Mon, 25 Dec 2017 03:35:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 4F5EBE041F for ; Mon, 25 Dec 2017 03:35:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 0AA59212F7 for ; Mon, 25 Dec 2017 03:35:00 +0000 (UTC) Date: Mon, 25 Dec 2017 03:35:00 +0000 (UTC) From: "Ted Yu (JIRA)" To: issues@hbase.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HBASE-19619) TestReplicationShell fails due to calling Collections$UnmodifiableCollection.add MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 25 Dec 2017 03:35:05 -0000 [ 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 # 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)