Skip to content

Reproduce agent bootstrap failure with a child-first system loader - #20923

Closed
trask with Copilot wants to merge 3 commits into
mainfrom
copilot/create-repro-cloud
Closed

trask with Copilot wants to merge 3 commits into
mainfrom
copilot/create-repro-cloud

Conversation

Copilot AI commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Investigates the WebLogic startup report with a dependency-free fixture that exercises real -javaagent initialization. A child-first system loader triggers IllegalStateException: agent initializer should be loaded in boot loader; normal and parent-first loaders initialize successfully.

  • Reproduction: Asserts the exact exception, startup stack, and uninitialized-agent state despite application exit code 0.
  • Results: Reproduces the synthetic failure with released agent 2.33.0 and source-built 3.0.0-SNAPSHOT on JDKs 11 and 25.
  • Scope: No production changes. Documents runnable commands, exact versions, and Node Manager retest steps; WebLogic’s actual loader behavior remains unconfirmed without the original licensed environment.

@opentelemetry-pr-dashboard

Copy link
Copy Markdown

Pull request dashboard status

Waiting on the author · refreshed 2026-10-23 23:01 UTC

Move out of draft to request review.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

Copilot AI and others added 2 commits October 23, 2026 23:08
Co-authored-by: trask <218610+trask@users.noreply.github.com>
…ructions

Co-authored-by: trask <218610+trask@users.noreply.github.com>
Copilot AI changed the title [WIP] Create minimal reproduction for OpenTelemetry Java agent issue Reproduce agent bootstrap failure with a child-first system loader Oct 23, 2026
Copilot AI requested a review from trask October 23, 2026 23:14
@trask
trask requested a balanced review from Copilot October 23, 2026 23:17

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The changes are limited to focused reproduction tests and documentation, with no unresolved blocking findings.

No open issues 🎉

What changed in this PR

Adds an isolated reproduction of agent bootstrap failure with a child-first system loader, without changing production code. The fixture demonstrates the failure mechanism but does not establish WebLogic’s actual loader behavior.

Changes:

  • Adds dependency-free fixtures for custom class loading and startup-state observation.
  • Tests real -javaagent initialization with normal, parent-first, and child-first loaders.
  • Documents standalone reproduction commands, observed results, and WebLogic confirmation steps.
File Description
javaagent/​src/​test/​java/​jvmbootstraptest/​ChildFirstSystemClassLoader.java Provides a synthetic loader with child-first and parent-first modes.
javaagent/​src/​test/​java/​jvmbootstraptest/​AgentStartupProbe.java Reports loader identities and agent startup state after premain.
javaagent/​src/​test/​java/​io/​opentelemetry/​javaagent/​CustomSystemClassLoaderTest.java Verifies successful controls and the exact child-first bootstrap failure.
javaagent/​README.md Documents reproduction procedures, results, and investigation limits.

Review effort: Balanced

@trask trask closed this Oct 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants