Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-19619

Modify replication_admin.rb to use ReplicationPeerConfigBuilder

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0-beta-1, 2.0.0
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      Here is the error:

      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)
      

      The cause was due to adding to UnmodifiableCollection

        Attachments

        1. 19619.v1.txt
          1 kB
          Ted Yu
        2. 19619.v10.txt
          5 kB
          Ted Yu
        3. 19619.v11.txt
          5 kB
          Ted Yu
        4. 19619.v12.txt
          5 kB
          Ted Yu
        5. 19619.v13.txt
          5 kB
          Ted Yu
        6. 19619.v13.txt
          5 kB
          Ted Yu
        7. 19619.v2.txt
          2 kB
          Ted Yu
        8. 19619.v3.txt
          3 kB
          Ted Yu
        9. 19619.v4.txt
          3 kB
          Ted Yu
        10. 19619.v5.txt
          4 kB
          Ted Yu
        11. 19619.v7.txt
          3 kB
          Ted Yu
        12. 19619.v8.txt
          3 kB
          Ted Yu

          Activity

            People

            • Assignee:
              yuzhihong@gmail.com Ted Yu
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: