Skip to content

Fix for invalid JFR event handling for concurrent recordings - #3227

Merged
laurit merged 1 commit into
signalfx:mainfrom
robsunday:fix-for-multi-concurrent-jfr-recordings
Nov 27, 2026
Merged

laurit merged 1 commit into
signalfx:mainfrom
robsunday:fix-for-multi-concurrent-jfr-recordings

Conversation

@robsunday

Copy link
Copy Markdown
Contributor

When additional JFR recording is started with Java command-line switches while at the same time Always On profiler is in use, very rarely the agent throws an IllegalStateException "delegate not set".
The exception comes from RateLimitingAllocationEventSampler.
As events are shared between JFR sessions, the most likely cause is that the command-line JFR recording supplied a jdk.ObjectAllocationSample event while the profiler was using its own rate limiter for TLab events.

The solution is to filter out the events and process only the types that are expected to get basing on profiler settings.

@robsunday
robsunday requested review from a team as code owners November 26, 2026 19:46
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T19:49:34.482152Z 67dfcf2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@laurit
laurit merged commit a0abd74 into signalfx:main Nov 27, 2026
29 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 27, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants