Aurélien Pupier created CAMEL-26890:
---------------------------------------

             Summary: Fix flaky test AsyncCxfTest
                 Key: CAMEL-26890
                 URL: https://issues.apache.org/jira/browse/CAMEL-26890
             Project: Camel
          Issue Type: Test
          Components: camel-opentelemetry
    Affects Versions: 4.24.0
            Reporter: Aurélien Pupier


[failed 5 times and flaky 8 time sin last 28 
days|https://develocity.apache.org/scans/tests?search.relativeStartTime=P28D&search.rootProjectNames=camel&search.tags=main&search.timeZoneId=Europe%2FParis&tests.container=*AsyncCxfTest]

several different stacktraces:
{noformat}
org.opentest4j.AssertionFailedError: expected: <4> but was: <2> 
        at org.junit.jupiter.api.Assertions.assertEquals(Assertions.java:569)   
        at 
org.apache.camel.opentelemetry.CamelOpenTelemetryTestSupport.verifyTraceSpanNumbers(CamelOpenTelemetryTestSupport.java:202)
  
        at 
org.apache.camel.opentelemetry.AsyncCxfTest.testRoute(AsyncCxfTest.java:47)
{noformat}

{noformat}
org.opentest4j.AssertionFailedError: There must be no leaking span after test 
==> expected: <{}> but was: 
<{opentelemetry-trace-span-key=SdkSpan{traceId=208740574cd492dc7262d5b770ac72c2,
 spanId=084e83dfab05526b, 
parentSpanContext=ImmutableSpanContext{traceId=208740574cd492dc7262d5b770ac72c2,
 spanId=7fe736948ee780ee, traceFlags=03, 
traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=true}, 
name=cxfrs, kind=CLIENT, 
attributes=AttributesMap{data={camel.uri=cxfrs://http://localhost:37107/rest/helloservice/sayHello?synchronous=false,
 url.scheme=cxfrs, component=camel-cxfrs, camel.route.id=myRoute, 
url.query=synchronous=false, 
url.path=http://localhost:37107/rest/helloservice/sayHello}, capacity=128, 
totalAddedValues=6}, status=ImmutableStatusData{statusCode=UNSET, 
description=}, totalRecordedEvents=0, totalRecordedLinks=0, 
startEpochNanos=1794467497161958176, endEpochNanos=1794467497207187432}}>    
        at 
org.apache.camel.opentelemetry.CamelOpenTelemetryTestSupport.noLeakingContext(CamelOpenTelemetryTestSupport.java:85)
 
        at java.lang.reflect.Method.invoke(Method.java:565)     
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:511)      
        at 
java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1450)
     
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:2019)  
        at 
java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:187)
{noformat}

{noformat}
org.opentest4j.AssertionFailedError: There must be no leaking span after test 
==> expected: <{}> but was: 
<{opentelemetry-trace-span-key=SdkSpan{traceId=64b2e02f46e84cd1269d4b4ec3ef9158,
 spanId=faa345fcb74695d1, 
parentSpanContext=ImmutableSpanContext{traceId=64b2e02f46e84cd1269d4b4ec3ef9158,
 spanId=54a4b50410bb8f63, traceFlags=03, 
traceState=ArrayBasedTraceState{entries=[]}, remote=false, valid=true}, 
name=cxfrs, kind=CLIENT, attributes=AttributesMap{data={url.scheme=cxfrs, 
camel.uri=cxfrs://http://localhost:45381/rest/helloservice/sayHello?synchronous=false,
 component=camel-cxfrs, camel.route.id=myRoute, url.query=synchronous=false, 
url.path=http://localhost:45381/rest/helloservice/sayHello}, capacity=128, 
totalAddedValues=6}, status=ImmutableStatusData{statusCode=UNSET, 
description=}, totalRecordedEvents=0, totalRecordedLinks=0, 
startEpochNanos=1793649092572866179, endEpochNanos=1793649092724039491}}>    
        at 
org.apache.camel.opentelemetry.CamelOpenTelemetryTestSupport.noLeakingContext(CamelOpenTelemetryTestSupport.java:85)
 
        at java.lang.reflect.Method.invoke(Method.java:580)     
        at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:387)      
        at 
java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1312)
     
        at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1843)       
        at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1808)  
        at 
java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:188)
{noformat}




--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to