Skip to content

PekkoHttpServerInstrumentationAsyncHttp2Test."test exception" is flaky #9396

Description

@AlexeyKuznetsov-DD

Tracer Version(s)

1.52.1

Java Version(s)

8, 17, 21

JVM Vendor

Oracle JDK

Bug Report

Failed more than 200 times on GitLab CI on all versions of java and libs (no clear pattern).

PekkoHttpServerInstrumentationAsyncHttp2Test > test exception FAILED
org.spockframework.runtime.ConditionFailedWithExceptionError at HttpServerTest.groovy:1204
Caused by: java.util.concurrent.TimeoutException at ListWriter.java:95

And

Condition failed with Exception:

assertTraces(1) { trace(spanCount(EXCEPTION)) { sortSpansByStart() serverSpan(it, null, null, method, EXCEPTION) if (hasHandlerSpan()) { handlerSpan(it, EXCEPTION) } controllerSpan(it, EXCEPTION) if (hasResponseSpan(EXCEPTION)) { responseSpan(it, EXCEPTION) } trailingSpans(it, EXCEPTION) } }

Condition failed with Exception:

assertTraces(1) { trace(spanCount(EXCEPTION)) { sortSpansByStart() serverSpan(it, null, null, method, EXCEPTION) if (hasHandlerSpan()) { handlerSpan(it, EXCEPTION) } controllerSpan(it, EXCEPTION) if (hasResponseSpan(EXCEPTION)) { responseSpan(it, EXCEPTION) } trailingSpans(it, EXCEPTION) } }

	at datadog.trace.agent.test.base.HttpServerTest.test exception(HttpServerTest.groovy:1204)
Caused by: java.util.concurrent.TimeoutException: Timeout waiting for 1 trace(s). ListWriter.size() == 0 : []
	at datadog.trace.common.writer.ListWriter.waitForTraces(ListWriter.java:95)
	at datadog.trace.agent.test.asserts.ListWriterAssert.assertTraces(ListWriterAssert.groovy:50)
	at datadog.trace.agent.test.asserts.ListWriterAssert.assertTraces(ListWriterAssert.groovy:41)
	at datadog.trace.agent.test.AgentTestRunner.assertTraces(AgentTestRunner.groovy:701)
	at datadog.trace.agent.test.AgentTestRunner.assertTraces(AgentTestRunner.groovy:690)
	... 1 more

Expected Behavior

Test should pass

Reproduction Code

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions