PekkoHttpServerInstrumentationAsyncHttp2Test."test exception" is flaky
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
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
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from DataDog/dd-trace-java
-
type: feature request
Difficulty 1/5 1-3 hours Newbie friendliness 70/100
DataDog/dd-trace-java#10245 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 62/100
DataDog/dd-trace-java#12608 ·
-
type: bug report
Difficulty 4/5 3-5 days Newbie friendliness 35/100
DataDog/dd-trace-java#12597 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
DataDog/dd-trace-java#12540 · 3 comments · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
DataDog/dd-trace-java#12480 ·
All issues in DataDog/dd-trace-java
Similar issues
-
awaiting triage bug Causes friction Hop Gui P1 P2 Transforms
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
apache/flink-agents#1152 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
jenkinsci/blueocean-plugin#5417 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
objectionary/eo-graphs#75 ·