Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

PekkoHttpServerInstrumentationAsyncHttp2Test."test exception" is flaky

Open
#9,396 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
backend, testing

Research direction

Start with PekkoHttpServerInstrumentationAsyncHttp2Test and the failing test at HttpServerTest.groovy:1204; run it on the listed Java versions and inspect the trace assertion and ListWriter timeout. Done means the test passes reliably in GitLab CI and still validates the expected exception trace.

Written by the indexing model from the issue text.

Description

type: bug report
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

Dominant language
Java
Stars
737
Forks
361
Avg merge
3d 20h
Merged PRs (30d)
173

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DataDog/dd-trace-java

All issues in DataDog/dd-trace-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.