On Mon, Jul 16, 2018 at 7:23 PM Pavol Loffay <ploffay@redhat.com> wrote:
Hi,

I am migrating MicroProfile-OpenTracing implementation from Thorntaln/WF-Swarm to SmallRye [1]. We had all TCKs passing in Thorntail, however now in SmallRye one test for async endpoint is failing.

The issue is that AsyncListener which reports tracing data is not being invoked. The listener is added in a servlet filter see https://github.com/opentracing-contrib/java-jaxrs/blob/master/opentracing-jaxrs2/src/main/java/io/opentracing/contrib/jaxrs2/server/SpanFinishingFilter.java#L68.

Should be AsyncListener always invoked for async requests? Or is it just undertow bug/ behavior? If the listener is not invoked tracing data is not reported and hence failing TCK.

Looking at this again I think this is a bug in Undertow. At the moment we don't really delay the async complete() call properly, I have re-opened to attached JIRA and will work on a fix.

Stuart
 

Tests in SmallRye are based on WF13 and resteasy 3.0.24.Final the Thorntail uses the same resteasy version. The issue is also described on pull request [1].

[1]: https://github.com/smallrye/smallrye-opentracing/pull/4

Regards,

--

PAVOL LOFFAY

SOFTWARE ENGINEER

Red Hat

M: +41791562647    

_______________________________________________
undertow-dev mailing list
undertow-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/undertow-dev