Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-15005

microprofile-opentracing arqullian tests failing due to old opentracing dependencies

    XMLWordPrintable

Details

    • Hide

      Follow QS readme, run arquillian tests:

      # start server
      JAEGER_REPORTER_LOG_SPANS=true JAEGER_SAMPLER_TYPE=const JAEGER_SAMPLER_PARAM=1 bin/standalone.sh
      
      # run tests from <qs>/microprofile-opentracing
      mvn clean verify -Parq-remote
      
      Show
      Follow QS readme, run arquillian tests: # start server JAEGER_REPORTER_LOG_SPANS=true JAEGER_SAMPLER_TYPE=const JAEGER_SAMPLER_PARAM=1 bin/standalone.sh # run tests from <qs>/microprofile-opentracing mvn clean verify -Parq-remote
    • Regression

    Description

      Following QS README user ends up with failing tests:

      [ERROR] Tests run: 3, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 5.653 s <<< FAILURE! - in org.wildfly.quickstarts.microprofile.opentracing.MicroProfileOpenTracingIT
      [ERROR] testTrace(org.wildfly.quickstarts.microprofile.opentracing.MicroProfileOpenTracingIT)  Time elapsed: 0.604 s  <<< FAILURE!
      java.lang.AssertionError: expected:<200> but was:<500>
      	at org.wildfly.quickstarts.microprofile.opentracing.MicroProfileOpenTracingIT.appGetInvoke(MicroProfileOpenTracingIT.java:139)
      	at org.wildfly.quickstarts.microprofile.opentracing.MicroProfileOpenTracingIT.testTrace(MicroProfileOpenTracingIT.java:95)
      
      [ERROR] testCDITracing(org.wildfly.quickstarts.microprofile.opentracing.MicroProfileOpenTracingIT)  Time elapsed: 0.293 s  <<< FAILURE!
      java.lang.AssertionError: expected:<200> but was:<500>
      	at org.wildfly.quickstarts.microprofile.opentracing.MicroProfileOpenTracingIT.appGetInvoke(MicroProfileOpenTracingIT.java:139)
      	at org.wildfly.quickstarts.microprofile.opentracing.MicroProfileOpenTracingIT.testCDITracing(MicroProfileOpenTracingIT.java:120)
      
      

      with error on server side:

      21:51:11,346 ERROR [io.undertow.request] (default task-2) UT005023: Exception handling request to /e1aac492-51cd-4782-b7e3-3e7826370629/hello/traced: java.lang.NoSuchMethodError: io.opentracing.ScopeManager.active()Lio/opentracing/Scope;
      	at io.opentracing.mock.MockTracer.activeSpan(MockTracer.java:187)
      	at io.opentracing.contrib.jaxrs2.server.ServerTracingFilter.parentSpanContext(ServerTracingFilter.java:103)
      	at io.opentracing.contrib.jaxrs2.server.ServerTracingFilter.filter(ServerTracingFilter.java:69)
      	at org.jboss.resteasy.core.interception.PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:308)
      ...
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jbliznak@redhat.com Jan Blizňák
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: