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

TestShell is broken after we remove the jackson dependencies

    XMLWordPrintableJSON

Details

    Description

      Error: test_tasksOnHost_should_return_tasks_list(Hbase::TaskMonitorTest): NameError: cannot load Java class com.fasterxml.jackson.databind.ObjectMapper
      org/jruby/javasupport/JavaClass.java:286:in `for_name'
      org/jruby/javasupport/JavaUtilities.java:34:in `get_proxy_class'
      uri:classloader:/jruby/java/core_ext/object.rb:49:in `block in java_import'
      org/jruby/RubyArray.java:2486:in `map'
      uri:classloader:/jruby/java/core_ext/object.rb:36:in `java_import'
      /home/jenkins/jenkins-slave/workspace/HBase-Flaky-Tests_master-M6IJIUBEFGBLJA2QZFJ5NFMN4UCZCOJZHSKUZTUZSLWEH6TJXWBQ/hbase-shell/src/main/ruby/hbase/taskmonitor.rb:77:in `tasksOnHost'
      src/test/ruby/hbase/taskmonitor_test.rb:33:in `block in test_tasksOnHost_should_return_tasks_list'
           30:       filter = 'all'
           31:       hosts = admin.getRegionServers()
           32:       hosts.each do |host|
        => 33:         tasks = taskmonitor.tasksOnHost(filter,host)
           34:         assert(tasks.length > 0)
           35:       end
           36:     end
      org/jruby/RubyArray.java:1734:in `each'
      src/test/ruby/hbase/taskmonitor_test.rb:32:in `block in test_tasksOnHost_should_return_tasks_list'
      

      Seems we are using jackson in hbase-shell.

      Attachments

        1. HBASE-21947.patch
          3 kB
          Duo Zhang
        2. HBASE-21947-v1.patch
          3 kB
          Duo Zhang

        Issue Links

          Activity

            People

              zhangduo Duo Zhang
              zhangduo Duo Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: